/external/chromium_org/ui/gl/ |
gl_context_android.cc | 21 // Used to render into an already current context+surface, 32 virtual bool MakeCurrent(GLSurface* surface) OVERRIDE; 33 virtual void ReleaseCurrent(GLSurface* surface) OVERRIDE {} 34 virtual bool IsCurrent(GLSurface* surface) OVERRIDE { return true; } 57 bool GLNonOwnedContext::MakeCurrent(GLSurface* surface) { 58 SetCurrent(surface);
|
gl_context.cc | 158 void GLContext::SetCurrent(GLSurface* surface) { 159 current_context_.Pointer()->Set(surface ? this : NULL); 160 GLSurface::SetCurrent(surface); 164 if (!surface && GetGLImplementation() != kGLImplementationMockGL) { 200 GLContext* virtual_context, GLSurface* surface) { 202 return virtual_gl_api_->MakeCurrent(virtual_context, surface); 225 void GLContextReal::SetCurrent(GLSurface* surface) { 226 GLContext::SetCurrent(surface); 227 current_real_context_.Pointer()->Set(surface ? this : NULL);
|
/external/deqp/modules/glshared/ |
glsRasterizationTestUtil.hpp | 112 * Verifies pixels in the surface are rasterized within the bounds given 119 bool verifyTriangleGroupRasterization (const tcu::Surface& surface, const TriangleSceneSpec& scene, const RasterizationArguments& args, tcu::TestLog& log, VerificationMode mode = VERIFICATIONMODE_STRICT); 123 * Verifies pixels in the surface are rasterized within the bounds given 130 bool verifyLineGroupRasterization (const tcu::Surface& surface, const LineSceneSpec& scene, const RasterizationArguments& args, tcu::TestLog& log); 134 * Verifies points in the surface are rasterized within the bounds given 141 bool verifyPointGroupRasterization (const tcu::Surface& surface, const PointSceneSpec& scene, const RasterizationArguments& args, tcu::TestLog& log); 152 bool verifyTriangleGroupInterpolation (const tcu::Surface& surface, const TriangleSceneSpec& scene, const RasterizationArguments& args, tcu::TestLog& log) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GetBitmapActivity.java | 81 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { 85 mCamera.setPreviewTexture(surface); 94 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { 99 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { 106 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
|
CanvasTextureViewActivity.java | 50 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { 56 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { 61 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { 67 public void onSurfaceTextureUpdated(SurfaceTexture surface) { 75 public RenderingThread(TextureView surface) { 76 mSurface = surface;
|
/external/deqp/modules/egl/ |
teglQuerySurfaceTests.cpp | 21 * \brief Surface query tests. 60 static void logSurfaceAttributes (tcu::TestLog& log, const tcu::egl::Surface& surface, const EGLint* attributes, int num) 66 logSurfaceAttribute(log, attrib, surface.getAttribute(attrib)); 70 static void logCommonSurfaceAttributes (tcu::TestLog& log, const tcu::egl::Surface& surface) 87 logSurfaceAttributes(log, surface, attributes, DE_LENGTH_OF_ARRAY(attributes)); 90 static void logPbufferSurfaceAttributes (tcu::TestLog& log, const tcu::egl::Surface& surface) 100 logSurfaceAttributes(log, surface, attributes, DE_LENGTH_OF_ARRAY(attributes)) [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/photon/ |
SDL_ph_image.c | 522 int ph_AllocHWSurface(_THIS, SDL_Surface* surface) 526 if (surface->hwdata!=NULL) 531 surface->hwdata=SDL_malloc(sizeof(struct private_hwdata)); 532 SDL_memset(surface->hwdata, 0x00, sizeof(struct private_hwdata)); 533 surface->hwdata->offscreenctx=PdCreateOffscreenContext(0, surface->w, surface->h, Pg_OSC_MEM_PAGE_ALIGN); 534 if (surface->hwdata->offscreenctx == NULL) 539 surface->pixels=PdGetOffscreenContextPtr(surface->hwdata->offscreenctx) [all...] |
/frameworks/native/opengl/tests/fillrate/ |
fillrate.cpp | 44 EGLSurface surface; local 61 surface = eglCreateWindowSurface(dpy, config, window, NULL); 63 eglMakeCurrent(dpy, surface, surface, context); 64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 65 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 125 eglSwapBuffers(dpy, surface); 135 eglSwapBuffers(dpy, surface); 147 eglSwapBuffers(dpy, surface);
|
/frameworks/rs/java/tests/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...] |
/external/deqp/framework/egl/ |
egluApiPrototypes.inl | 16 EGLBoolean eglDestroySurface (EGLDisplay dpy, EGLSurface surface); 17 EGLBoolean eglQuerySurface (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint* value); 23 EGLBoolean eglSurfaceAttrib (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value); 24 EGLBoolean eglBindTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer); 25 EGLBoolean eglReleaseTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer); 36 EGLBoolean eglSwapBuffers (EGLDisplay dpy, EGLSurface surface); 37 EGLBoolean eglCopyBuffers (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
|
/external/qemu/distrib/sdl-1.2.15/src/video/quartz/ |
SDL_QuartzWindow.m | 35 SDL_Surface *surface = current_video->screen; 36 int bpp = surface->format->BitsPerPixel; 37 Uint32 amask = surface->format->Amask; 41 Uint32 *pixels = (Uint32*) surface->pixels; 42 Uint32 rowPixels = surface->pitch / 4; 45 for (i = 0; i < surface->h; i++) 46 for (j = 0; j < surface->w; j++) { 82 We'll save the current visible surface, let the window manager redraw any 83 UI elements, and restore the SDL surface. This way, no expose event 92 /* save current visible SDL surface */ [all...] |
/frameworks/native/opengl/tests/finish/ |
finish.cpp | 45 EGLSurface surface; local 62 surface = eglCreateWindowSurface(dpy, config, window, NULL); 64 eglMakeCurrent(dpy, surface, surface, context); 65 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 66 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 114 eglSwapBuffers(dpy, surface); 128 eglSwapBuffers(dpy, surface); 143 eglSwapBuffers(dpy, surface); 158 eglSwapBuffers(dpy, surface); [all...] |
/frameworks/native/opengl/tools/glgen/specs/egl/ |
EGL14.spec | 12 EGLBoolean eglDestroySurface ( EGLDisplay dpy, EGLSurface surface ) 13 EGLBoolean eglQuerySurface ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value ) 19 EGLBoolean eglSurfaceAttrib ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value ) 20 EGLBoolean eglBindTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer ) 21 EGLBoolean eglReleaseTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer ) 32 EGLBoolean eglSwapBuffers ( EGLDisplay dpy, EGLSurface surface ) 33 EGLBoolean eglCopyBuffers ( EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target )
|
/sdk/emulator/opengl/tests/EGL_host_wrapper/ |
egl.cpp | 119 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface) 121 return getDispatch()->eglDestroySurface(dpy, surface); 124 EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value) 126 return getDispatch()->eglQuerySurface(dpy, surface, attribute, value); 154 EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value) 156 return getDispatch()->eglSurfaceAttrib(dpy, surface, attribute, value); 159 EGLBoolean eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer) 161 return getDispatch()->eglBindTexImage(dpy, surface, buffer); 164 EGLBoolean eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer) 166 return getDispatch()->eglReleaseTexImage(dpy, surface, buffer) [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/macdsp/ |
SDL_dspvideo.c | 97 I can't create a hardware surface the same size as the screen?! How to fix? 167 /* Hardware surface functions */ 168 static int DSp_SetHWAlpha(_THIS, SDL_Surface *surface, UInt8 alpha); 169 static int DSp_SetHWColorKey(_THIS, SDL_Surface *surface, Uint32 key); 171 static int DSp_AllocHWSurface(_THIS, SDL_Surface *surface); 172 static int DSp_LockHWSurface(_THIS, SDL_Surface *surface); 173 static void DSp_UnlockHWSurface(_THIS, SDL_Surface *surface); 174 static void DSp_FreeHWSurface(_THIS, SDL_Surface *surface); 175 static int DSp_FlipHWSurface(_THIS, SDL_Surface *surface); 655 fmt = "Hardware surface possible but not enough %s available" [all...] |
/external/chromium_org/cc/test/ |
fake_output_surface.h | 79 scoped_ptr<FakeOutputSurface> surface(Create3d()); 80 surface->capabilities_.draw_and_swap_full_viewport_every_frame = true; 81 return surface.Pass(); 86 scoped_ptr<FakeOutputSurface> surface(new FakeOutputSurface( 88 surface->capabilities_.uses_default_gl_framebuffer = false; 89 return surface.Pass();
|
/frameworks/av/camera/camera2/ |
CaptureRequest.cpp | 25 #include <gui/Surface.h> 48 ALOGE("%s: Failed to read surface list size from parcel", __FUNCTION__); 51 ALOGV("%s: Read surface list size = %d", __FUNCTION__, size); 58 ALOGV("%s: Read surface class = %s", __FUNCTION__, 65 // Surface.writeToParcel 67 ALOGV("%s: Read surface name = %s", __FUNCTION__, 70 ALOGV("%s: Read surface binder = %p", 73 sp<Surface> surface; local 78 surface = new Surface(gbp) 105 sp<Surface> surface = mSurfaceList[i]; local [all...] |
/frameworks/base/core/java/android/view/ |
HardwareRenderer.java | 23 import android.view.Surface.OutOfResourcesException; 218 * Initializes the hardware renderer for the specified surface. 220 * @param surface The surface to hardware accelerate 224 abstract boolean initialize(Surface surface) throws OutOfResourcesException; 227 * Updates the hardware renderer for the specified surface. 229 * @param surface The surface to hardware accelerate 231 abstract void updateSurface(Surface surface) throws OutOfResourcesException [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
Canvas2DLayerManagerTest.cpp | 67 FakeCanvas2DLayerBridge(WebGraphicsContext3D* context, PassOwnPtr<SkDeferredCanvas> canvas, PassRefPtr<SkSurface> surface) 68 : Canvas2DLayerBridge(adoptPtr(new MockWebGraphicsContext3DProvider(context)), canvas, surface, 0, NonOpaque) 170 RefPtr<SkSurface> surface = adoptRef(SkSurface::NewRasterPMColor(1, 1)); local 171 OwnPtr<SkDeferredCanvas> canvas = adoptPtr(SkDeferredCanvas::Create(surface.get())); 172 FakeCanvas2DLayerBridgePtr layer(adoptRef(new FakeCanvas2DLayerBridge(webContext.get(), canvas.release(), surface.release()))); 188 RefPtr<SkSurface> surface = adoptRef(SkSurface::NewRasterPMColor(1, 1)); local 189 OwnPtr<SkDeferredCanvas> canvas = adoptPtr(SkDeferredCanvas::Create(surface.get())); 190 FakeCanvas2DLayerBridgePtr layer(adoptRef(new FakeCanvas2DLayerBridge(webContext.get(), canvas.release(), surface.release()))); 208 RefPtr<SkSurface> surface = adoptRef(SkSurface::NewRasterPMColor(1, 1)); local 209 OwnPtr<SkDeferredCanvas> canvas = adoptPtr(SkDeferredCanvas::Create(surface.get())) 223 RefPtr<SkSurface> surface = adoptRef(SkSurface::NewRasterPMColor(1, 1)); local 274 RefPtr<SkSurface> surface = adoptRef(SkSurface::NewRasterPMColor(1, 1)); local [all...] |
/development/ndk/platforms/android-9/samples/native-activity/jni/ |
main.c | 53 EGLSurface surface; member in struct:engine 81 EGLSurface surface; local 101 surface = eglCreateWindowSurface(display, config, engine->app->window, NULL); 104 if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE) { 109 eglQuerySurface(display, surface, EGL_WIDTH, &w); 110 eglQuerySurface(display, surface, EGL_HEIGHT, &h); 114 engine->surface = surface; 142 eglSwapBuffers(engine->display, engine->surface); [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_processing/test/android/apmtest/jni/ |
main.c | 53 EGLSurface surface; member in struct:engine 81 EGLSurface surface; local 101 surface = eglCreateWindowSurface(display, config, engine->app->window, NULL); 104 if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE) { 109 eglQuerySurface(display, surface, EGL_WIDTH, &w); 110 eglQuerySurface(display, surface, EGL_HEIGHT, &h); 114 engine->surface = surface; 142 eglSwapBuffers(engine->display, engine->surface); [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/directfb/ |
SDL_DirectFB_yuv.c | 43 IDirectFBSurface *surface; member in struct:private_yuvhwdata 61 /* take the one with a surface for video */ 138 ret = layer->GetSurface (layer, &hwdata->surface); 169 /* Set up the YUV surface function structure */ 213 IDirectFBSurface *surface = overlay->hwdata->surface; local 215 ret = surface->Lock (surface, DSLF_READ | DSLF_WRITE, &data, &pitch); 246 IDirectFBSurface *surface = overlay->hwdata->surface; local [all...] |
/external/webrtc/src/modules/audio_processing/test/android/apmtest/jni/ |
main.c | 53 EGLSurface surface; member in struct:engine 81 EGLSurface surface; local 101 surface = eglCreateWindowSurface(display, config, engine->app->window, NULL); 104 if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE) { 109 eglQuerySurface(display, surface, EGL_WIDTH, &w); 110 eglQuerySurface(display, surface, EGL_HEIGHT, &h); 114 engine->surface = surface; 142 eglSwapBuffers(engine->display, engine->surface); [all...] |
/device/generic/goldfish/opengl/tests/gles_android_wrapper/ |
egl.cpp | 361 EGLSurface surface = getDispatch()->eglCreateWindowSurface(dpy, config, win, attrib_list); local 362 if (surface != EGL_NO_SURFACE) { 365 server->utEnc()->createSurface(server->utEnc(), getpid(), (uint32_t)surface); 368 return surface; 373 EGLSurface surface = getDispatch()->eglCreatePbufferSurface(dpy, config, attrib_list); local 374 if (surface != EGL_NO_SURFACE) { 377 server->utEnc()->createSurface(server->utEnc(), getpid(), (uint32_t)surface); 380 return surface; 385 EGLSurface surface = getDispatch()->eglCreatePixmapSurface(dpy, config, pixmap, attrib_list); local 386 if (surface != EGL_NO_SURFACE) [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/ |
SDL_RLEaccel.c | 30 * decoder. Added per-surface alpha blitter. Added per-pixel alpha 49 * binary transparency and for per-surface alpha blending, and for surfaces 54 * Encoded pixels always have the same format as the target surface. 121 * Various colorkey blit methods, for opaque and per-surface alpha 780 * This takes care of the case when the surface is clipped on the left and/or 839 /* blit a colorkeyed RLE surface */ 948 * These use the same techniques as the per-surface blitting macros 1014 /* blit a pixel-alpha RLE surface clipped at the right and/or left edges */ [all...] |