/frameworks/base/core/java/android/view/ |
Surface.java | 38 * <p>A Surface is generally created by or from a consumer of image buffers (such as a 46 * <p><strong>Note:</strong> A Surface acts like a 50 public class Surface implements Parcelable { 51 private static final String TAG = "Surface"; 82 public static final Parcelable.Creator<Surface> CREATOR = 83 new Parcelable.Creator<Surface>() { 85 public Surface createFromParcel(Parcel source) { 87 Surface s = new Surface(); 91 Log.e(TAG, "Exception creating surface from parcel", e) [all...] |
/external/wayland-protocols/freedesktop.org/unstable/fullscreen-shell/ |
fullscreen-shell-unstable-v1.xml | 5 <description summary="displays a single surface per output"> 6 Displays a single surface per output. 13 To present a surface, the client uses either the present_surface or 14 present_surface_for_mode requests. Presenting a surface takes effect 18 The client can have at most one surface per output at any time. 19 Requesting a surface to be presented on an output that already has a 20 surface replaces the previously presented surface. Presenting a null 21 surface removes its content and effectively disables the output. 23 compositor-specific. The same surface may be presented on multipl [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
OutputConfigurationTest.java | 25 import android.view.Surface; 35 Surface surface = new Surface(outputTexture); local 37 //Test OutputConfiguration with a surface. 38 OutputConfiguration outputConfig = new OutputConfiguration(surface); 54 // addSurface shouldn't throw exception because surface sharing is enabled. 56 Surface surface2 = new Surface(outputTexture2); 60 //Test OutputConfiguration with surface group id [all...] |
/external/skia/site/user/api/ |
SkSurface_Reference.md | 4 # <a name="Surface"></a> Surface 19 allocated either in CPU memory (a raster surface) or on the GPU (a <a href="undocumented#GrRenderTarget">GrRenderTarget</a> surface). 20 <a href="#SkSurface">SkSurface</a> takes care of allocating a <a href="SkCanvas_Reference#SkCanvas">SkCanvas</a> that will draw into the surface. Call 21 surface-><a href="#SkSurface_getCanvas">getCanvas</a> to use that canvas (but don't delete it, it is owned by the surface). 22 <a href="#SkSurface">SkSurface</a> always has non-zero dimensions. If there is a request for a new surface, and either 38 | <a href="#SkSurface_MakeFromBackendRenderTarget">MakeFromBackendRenderTarget</a> | creates <a href="#Surface">Surface</a> from GPU memory buffer [all...] |
/external/skqp/include/core/ |
SkSurface.h | 28 * allocated either in CPU memory (a Raster surface) or on the GPU (a RenderTarget surface). 30 * SkSurface takes care of allocating a SkCanvas that will draw into the surface. Call 31 * surface->getCanvas() to use that canvas (but don't delete it, it is owned by the surface). 33 * SkSurface always has non-zero dimensions. If there is a request for a new surface, and either 39 * Create a new surface, using the specified pixels/rowbytes as its 42 * If the requested surface cannot be created, or the request is not a 45 * Callers are responsible for initialiazing the surface pixels. 53 * when the surface is deleted, and is passed the pixel memory and the specified context [all...] |
/frameworks/native/cmds/flatland/ |
GLHelper.h | 18 #include <gui/Surface.h> 51 bool makeCurrent(EGLSurface surface); 54 sp<GLConsumer>* surfaceTexture, EGLSurface* surface, 58 sp<SurfaceControl>* surfaceControl, EGLSurface* surface); 60 void destroySurface(EGLSurface* surface); 62 bool swapBuffers(EGLSurface surface); 71 sp<GLConsumer>* surfaceTexture, EGLSurface* surface);
|
/frameworks/native/libs/gui/view/ |
Surface.cpp | 17 #define LOG_TAG "Surface" 19 #include <gui/view/Surface.h> 30 status_t Surface::writeToParcel(Parcel* parcel) const { 34 status_t Surface::writeToParcel(Parcel* parcel, bool nameAlreadyWritten) const { 51 status_t Surface::readFromParcel(const Parcel* parcel) { 55 status_t Surface::readFromParcel(const Parcel* parcel, bool nameAlreadyRead) { 74 String16 Surface::readMaybeEmptyString16(const Parcel* parcel) {
|
/external/deqp/external/openglcts/data/mustpass/gles/khronos_mustpass/3.2.2.x/ |
mustpass.xml | 21 <Configuration caseListFile="gles2-khr-master.txt" commandLine="--deqp-screen-rotation=unspecified --deqp-surface-width=64 --deqp-surface-height=64 --deqp-base-seed=1 --deqp-watchdog=disable" name="khr-master" os="any" useForFirstEGLConfig="True"/> 22 <Configuration caseListFile="gles2-deqp-master.txt" commandLine="--deqp-screen-rotation=unspecified --deqp-surface-width=64 --deqp-surface-height=64 --deqp-base-seed=1 --deqp-watchdog=disable" name="deqp-master" os="any" useForFirstEGLConfig="True"/> 23 <Configuration caseListFile="gles2-gtf-master.txt" commandLine="--deqp-screen-rotation=unspecified --deqp-surface-width=64 --deqp-surface-height=64 --deqp-base-seed=1 --deqp-watchdog=disable" name="gtf-master" os="any" useForFirstEGLConfig="True"/> 24 <Configuration caseListFile="gles2-gtf-master.txt" commandLine="--deqp-screen-rotation=unspecified --deqp-surface-width=113 --deqp-surface-height=47 --deqp-base-seed=2 --deqp-watchdog=disable" name="gtf-master" os="any" useForFirstEGLConfig="True"/> 25 <Configuration caseListFile="gles2-gtf-master.txt" commandLine="--deqp-screen-rotation=unspecified --deqp-surface-width=64 --deqp-surface-height=-1 --deqp-base-seed=3 --deqp-gl-config-name=rgba8888d24s8 --deqp-surface-type=fbo --deqp-wa (…) [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
gen7_wm_surface_state.c | 53 * dword 0 bit 10 "Surface Array Spacing" Programming Notes): 55 * If Multisampled Surface Storage Format is MSFMT_MSS and Number of 64 * dword 4 bit 6 "Multisampled Surface Storage" Programming Notes): 78 * dword 4 bit 6 "Multisampled Surface Storage Format" Errata): 80 * If the surface?s Number of Multisamples is MULTISAMPLECOUNT_8, Width 81 * is >= 8192 (meaning the actual surface width is >= 8193 pixels), this 90 * dword 4 bit 6 "Multisampled Surface Storage Format" Errata): 92 * If the surface?s Number of Multisamples is MULTISAMPLECOUNT_8, 93 * ((Depth+1) * (Height+1)) is > 4,194,304, OR if the surface?s Number of 96 * must be set to MSFMT_DEPTH_STENCIL if Surface Format is one of th [all...] |
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
CustomSurfaceView.java | 23 import android.view.Surface; 28 * This provides functionality to measure Surface update frame rate. The idea is to 29 * constantly invalidates Surface in a separate thread. Lowest possible way is to 30 * use SurfaceView which works with Surface. This gives a very small overhead 33 * gives the change to measure real performance of Surface compositor. 42 private Surface mSurface; 104 throw new RuntimeException("Surface canvas was already acquired."); 117 "Surface was destroyed but canvas was not released."); 126 * Invalidate surface. 132 // Draw surface name for debug purpose only. This does not affect the tes [all...] |
/frameworks/support/heifwriter/src/main/java/androidx/heifwriter/ |
EglWindowSurface.java | 26 import android.view.Surface; 31 * Holds state associated with a Surface used for MediaCodec encoder input. 33 * The constructor takes a Surface obtained from MediaCodec.createInputSurface(), and uses that 34 * to create an EGL window surface. Calls to eglSwapBuffers() cause a frame of data to be sent 47 private Surface mSurface; 52 * Creates an EglWindowSurface from a Surface. 54 public EglWindowSurface(Surface surface) { 55 if (surface == null) { 58 mSurface = surface; [all...] |
/frameworks/native/libs/vr/libdisplay/ |
display_client.cpp | 24 Surface::Surface(LocalChannelHandle channel_handle, int* error) 29 ALOGE("Surface::Surface: Failed to get surface info: %s", 41 Surface::Surface(const SurfaceAttributes& attributes, int* error) 47 ALOGE("Surface::Surface: Failed to create display surface: %s" [all...] |
/external/mesa3d/src/egl/main/ |
eglsurface.h | 49 /* A surface is a display resource */ 52 /* The context that is currently bound to the surface */ 80 /* True if the surface is bound to an OpenGL ES texture */ 112 * Increment reference count for the surface. 124 * Decrement reference count for the surface. 134 * Link a surface to its display and return the handle of the link. 146 * Unlink a linked surface from its display. 147 * Accessing an unlinked surface should generate EGL_BAD_SURFACE error. 157 * Lookup a handle to find the linked surface. 158 * Return NULL if the handle has no corresponding linked surface [all...] |
/external/swiftshader/src/OpenGL/libEGL/ |
Surface.hpp | 15 // Surface.hpp: Defines the egl::Surface class, representing a rendering surface 23 #include "common/Surface.hpp" 34 class Surface : public gl::Surface, public gl::Object 67 Surface(const Display *display, const Config *config); 69 ~Surface() override; 82 const Config *const config; // EGL config surface was created with 83 EGLint width; // Width of surface [all...] |
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/ |
RsYuv.java | 30 import android.view.Surface; 48 private Surface mSurface; 127 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { 128 android.util.Log.v("cpa", "onSurfaceTextureAvailable " + surface); 129 mSurface = new Surface(surface); 134 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { 135 android.util.Log.v("cpa", "onSurfaceTextureSizeChanged " + surface); 136 mSurface = new Surface(surface); [all...] |
/hardware/intel/common/libva/test/common/ |
va_display_wayland.c | 40 struct wl_surface *surface; member in struct:display 110 if (d->surface) { 111 wl_surface_destroy(d->surface); 112 d->surface = NULL; 143 if (!d->surface) { 144 d->surface = wl_compositor_create_surface(d->compositor); 145 if (!d->surface) 150 d->shell_surface = wl_shell_get_shell_surface(d->shell, d->surface); 161 VASurfaceID surface, 173 va_status = vaGetSurfaceBufferWl(va_dpy, surface, VA_FRAME_PICTURE, &buffer) [all...] |
/external/deqp/framework/common/ |
tcuSurfaceAccess.cpp | 21 * \brief Surface access class. 28 SurfaceAccess::SurfaceAccess (tcu::Surface& surface, const tcu::PixelFormat& colorFmt, int x, int y, int width, int height) 29 : m_surface (&surface) 38 SurfaceAccess::SurfaceAccess (tcu::Surface& surface, const tcu::PixelFormat& colorFmt) 39 : m_surface (&surface) 43 , m_width (surface.getWidth()) 44 , m_height (surface.getHeight())
|
/frameworks/av/services/camera/libcameraservice/device3/ |
Camera3SharedOutputStream.h | 35 Camera3SharedOutputStream(int id, const std::vector<sp<Surface>>& surfaces, 48 virtual status_t setConsumers(const std::vector<sp<Surface>>& consumers); 50 virtual ssize_t getSurfaceId(const sp<Surface> &surface); 52 virtual status_t updateStream(const std::vector<sp<Surface>> &outputSurfaces, 55 KeyedVector<sp<Surface>, size_t> *outputMap/*out*/); 62 sp<Surface> mSurfaces[kMaxOutputs]; 66 status_t revertPartialUpdateLocked(const KeyedVector<sp<Surface>, size_t> &removedSurfaces, 67 const KeyedVector<sp<Surface>, size_t> &attachedSurfaces);
|
/frameworks/base/libs/hwui/renderthread/ |
EglManager.h | 43 void destroySurface(EGLSurface surface); 47 bool isCurrent(EGLSurface surface) { return mCurrentSurface == surface; } 48 // Returns true if the current surface changed, false if it was already current 49 bool makeCurrent(EGLSurface surface, EGLint* errOut = nullptr); 50 Frame beginFrame(EGLSurface surface); 58 // Returns true iff the surface is now preserving buffers. 59 bool setPreserveBuffer(EGLSurface surface, bool preserve); 73 EGLint queryBufferAge(EGLSurface surface);
|
/frameworks/native/opengl/tests/gl_perf/ |
gl2_perf.cpp | 50 static EGLSurface surface; variable 92 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL); 94 if (surface == EGL_NO_SURFACE) { 105 returnValue = eglMakeCurrent(dpy, surface, surface, context); 110 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 112 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 119 eglSwapBuffers(dpy, surface); 127 eglSwapBuffers(dpy, surface);
|
/packages/apps/Camera2/src/com/android/camera/one/v2/core/ |
CaptureStream.java | 19 import android.view.Surface; 24 * A generic Surface-holding object which can be attached to a {@link Request}, 26 * provide a {@link Surface} on which to send frames from the camera. However, 27 * other implementations may wish to filter images sent to the {@link Surface} 32 * Implementations must provide a {@link Surface} and (optionally) implement 33 * logic to filter images added to the surface according to a stream of image 39 * of image timestamps as well as the images added to the {@link Surface}, and 50 * images which correspond to the request to which the surface 60 public Surface bind(BufferQueue<Long> timestamps)
|
/prebuilts/misc/windows/sdl2/test/ |
testdrawchessboard.c | 28 /* Get the Size of drawing surface */ 54 SDL_Surface *surface; local 68 /* Create window and renderer for given surface */ 75 surface = SDL_GetWindowSurface(window); 76 renderer = SDL_CreateSoftwareRenderer(surface); 79 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Render creation for surface fail : %s\n",SDL_GetError()); 83 /* Clear the rendering surface with the specified color */ 88 /* Draw the Image on rendering surface */ 102 /* Got everything on rendering surface,
|
/cts/tests/tests/media/src/android/media/cts/ |
InputSurface.java | 28 import android.view.Surface; 32 * Holds state associated with a Surface used for MediaCodec encoder input. 34 * The constructor takes a Surface obtained from MediaCodec.createInputSurface(), and uses that 35 * to create an EGL window surface. Calls to eglSwapBuffers() cause a frame of data to be sent 46 private Surface mSurface; 51 * Creates an InputSurface from a Surface. 53 public InputSurface(Surface surface) { 54 if (surface == null) { 57 mSurface = surface; [all...] |
/developers/build/prebuilts/gradle/RuntimePermissions/kotlinApp/app/src/main/java/com/example/android/system/runtimepermissions/extensions/ |
CameraExts.kt | 19 import android.view.Surface 31 Surface.ROTATION_0 -> 0 32 Surface.ROTATION_90 -> 90 33 Surface.ROTATION_180 -> 180 34 Surface.ROTATION_270 -> 270
|
/developers/build/prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/util/ |
CameraExt.kt | 20 import android.view.Surface 24 Surface.ROTATION_0 -> 0 25 Surface.ROTATION_90 -> 90 26 Surface.ROTATION_180 -> 180 27 Surface.ROTATION_270 -> 270
|