/external/chromium_org/ui/gl/ |
gl_context.h | 27 // Initializes the GL context to be compatible with the given surface. The GL 28 // context can be made with other surface's of the same type. The compatible 29 // surface is only needed for certain platforms like WGL, OSMesa and GLX. It 37 // Makes the GL context and a surface current on the current thread. 38 virtual bool MakeCurrent(GLSurface* surface) = 0; 40 // Releases this GL context and surface as current on the current thread. 41 virtual void ReleaseCurrent(GLSurface* surface) = 0; 43 // Returns true if this context and surface is current. Pass a null surface 44 // if the current surface is not important [all...] |
gl_context_glx.cc | 110 bool GLContextGLX::MakeCurrent(GLSurface* surface) { 112 if (IsCurrent(surface)) 118 reinterpret_cast<GLXDrawable>(surface->GetHandle()), 119 reinterpret_cast<GLXDrawable>(surface->GetHandle()), 129 SetCurrent(surface); 131 ReleaseCurrent(surface); 136 if (!surface->OnMakeCurrent(this)) { 138 ReleaseCurrent(surface); 146 void GLContextGLX::ReleaseCurrent(GLSurface* surface) { 147 if (!IsCurrent(surface)) [all...] |
gl_context_cgl.h | 25 virtual bool MakeCurrent(GLSurface* surface) OVERRIDE; 26 virtual void ReleaseCurrent(GLSurface* surface) OVERRIDE; 27 virtual bool IsCurrent(GLSurface* surface) OVERRIDE;
|
gl_context_egl.h | 30 virtual bool MakeCurrent(GLSurface* surface) OVERRIDE; 31 virtual void ReleaseCurrent(GLSurface* surface) OVERRIDE; 32 virtual bool IsCurrent(GLSurface* surface) OVERRIDE;
|
/external/icu4c/samples/layout/ |
gdiglue.cpp | 42 void rs_gdiRenderingSurfaceSetHDC(rs_surface *surface, HDC hdc) 44 GDISurface *rs = (GDISurface *) surface; 49 void rs_gdiRenderingSurfaceClose(rs_surface *surface) 51 GDISurface *rs = (GDISurface *) surface; 56 fm_fontMap *fm_gdiFontMapOpen(rs_surface *surface, const char *fileName, le_int16 pointSize, gs_guiSupport *guiSupport, LEErrorCode *status) 58 return (fm_fontMap *) new GDIFontMap((GDISurface *) surface, fileName, pointSize, (GDIGUISupport *) guiSupport, *status);
|
/external/mesa3d/src/gallium/drivers/svga/ |
svga_surface.h | 88 svga_surface(struct pipe_surface *surface) 90 assert(surface); 91 return (struct svga_surface *)surface; 96 svga_surface_const(const struct pipe_surface *surface) 98 assert(surface); 99 return (const struct svga_surface *)surface;
|
/external/mesa3d/src/gallium/drivers/trace/ |
tr_texture.h | 53 struct pipe_surface *surface; member in struct:trace_surface 91 trace_surface(struct pipe_surface *surface) 93 if(!surface) 95 (void)trace_resource(surface->texture); 96 return (struct trace_surface *)surface; 129 struct pipe_surface *surface);
|
/frameworks/native/cmds/flatland/ |
GLHelper.h | 19 #include <gui/Surface.h> 52 bool makeCurrent(EGLSurface surface); 55 sp<GLConsumer>* surfaceTexture, EGLSurface* surface, 59 sp<SurfaceControl>* surfaceControl, EGLSurface* surface); 61 void destroySurface(EGLSurface* surface); 63 bool swapBuffers(EGLSurface surface); 72 sp<GLConsumer>* surfaceTexture, EGLSurface* surface);
|
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/xvmc/ |
surface.c | 46 XvMCSurfacePrivate *surface, 99 GetPictureDescription(XvMCSurfacePrivate *surface, struct pipe_mpeg12_picture_desc *desc) 103 assert(surface && desc); 107 desc->picture_structure = surface->picture_structure; 109 if (surface->ref[i]) { 110 XvMCSurfacePrivate *ref = surface->ref[i]->privData; 119 RecursiveEndFrame(XvMCSurfacePrivate *surface) 124 assert(surface); 126 context_priv = surface->context->privData; 129 if (surface->ref[i]) [all...] |
/external/mesa3d/src/gallium/state_trackers/xvmc/ |
surface.c | 46 XvMCSurfacePrivate *surface, 99 GetPictureDescription(XvMCSurfacePrivate *surface, struct pipe_mpeg12_picture_desc *desc) 103 assert(surface && desc); 107 desc->picture_structure = surface->picture_structure; 109 if (surface->ref[i]) { 110 XvMCSurfacePrivate *ref = surface->ref[i]->privData; 119 RecursiveEndFrame(XvMCSurfacePrivate *surface) 124 assert(surface); 126 context_priv = surface->context->privData; 129 if (surface->ref[i]) [all...] |
/frameworks/native/opengl/tests/swapinterval/ |
swapinterval.cpp | 43 EGLSurface surface; local 70 surface = eglCreateWindowSurface(dpy, config, window, NULL); 71 if (surface == EGL_NO_SURFACE) { 83 eglMakeCurrent(dpy, surface, surface, context); 84 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 85 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 99 eglSwapBuffers(dpy, surface); 111 eglSwapBuffers(dpy, surface); 114 eglSwapBuffers(dpy, surface); [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
st_atom_framebuffer.c | 48 * didn't yank out the pipe_resource that we earlier created a surface for. 49 * Check for that here and create a new surface if needed. 61 if (!strb->surface || 62 strb->surface->format != format || 63 strb->surface->texture != resource || 64 strb->surface->width != rtt_width || 65 strb->surface->height != rtt_height) { 79 pipe_surface_reference(&strb->surface, NULL); 81 strb->surface = pipe->create_surface(pipe, 85 printf("-- alloc new surface %d x %d into tex %p\n" [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_atom_framebuffer.c | 48 * didn't yank out the pipe_resource that we earlier created a surface for. 49 * Check for that here and create a new surface if needed. 61 if (!strb->surface || 62 strb->surface->format != format || 63 strb->surface->texture != resource || 64 strb->surface->width != rtt_width || 65 strb->surface->height != rtt_height) { 79 pipe_surface_reference(&strb->surface, NULL); 81 strb->surface = pipe->create_surface(pipe, 85 printf("-- alloc new surface %d x %d into tex %p\n" [all...] |
/external/qemu/android/skin/ |
surface.c | 12 #include "android/skin/surface.h" 20 #define D(...) VERBOSE_PRINT(surface,__VA_ARGS__) 28 SDL_Surface* surface; member in struct:SkinSurface 40 if (s->surface) { 41 SDL_FreeSurface(s->surface); 42 s->surface = NULL; 48 skin_surface_ref( SkinSurface* surface ) 50 if (surface) 51 surface->refcount += 1; 52 return surface; 159 SDL_Surface* surface; local 177 SDL_Surface* surface; local 197 SDL_Surface* surface; local [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/directfb/ |
SDL_DirectFB_video.c | 61 /* Hardware surface functions */ 62 static int DirectFB_AllocHWSurface(_THIS, SDL_Surface *surface); 64 static int DirectFB_LockHWSurface(_THIS, SDL_Surface *surface); 65 static void DirectFB_UnlockHWSurface(_THIS, SDL_Surface *surface); 66 static void DirectFB_FreeHWSurface(_THIS, SDL_Surface *surface); 70 static int DirectFB_SetHWColorKey(_THIS, SDL_Surface *surface, Uint32 key); 71 static int DirectFB_SetHWAlpha(_THIS, SDL_Surface *surface, Uint8 alpha); 72 static int DirectFB_FlipHWSurface(_THIS, SDL_Surface *surface); 214 IDirectFBSurface *surface; member in struct:private_hwdata 502 /* Init the surface here as it got a fixed size * 595 IDirectFBSurface *surface; local 879 IDirectFBSurface *surface = dst->hwdata->surface; local 906 IDirectFBSurface *surface = dst->hwdata->surface; local 921 IDirectFBSurface *surface = src->hwdata->surface; local 1001 IDirectFBSurface *surface = this->screen->hwdata->surface; local 1092 IDirectFBSurface *surface = this->screen->hwdata->surface; local [all...] |
/external/qemu/distrib/sdl-1.2.15/test/ |
testblitspeed.c | 2 * Benchmarks surface-to-surface blits in various formats. 56 print_tf_state(" hardware surface available", info->hw_available); 71 static void output_surface_details(const char *name, SDL_Surface *surface) 75 if (surface == NULL) 77 printf("-WARNING- You've got a NULL surface!"); 82 printf(" width : %d\n", surface->w); 83 printf(" height : %d\n", surface->h); 84 printf(" depth : %d bits per pixel\n", surface->format->BitsPerPixel); 85 printf(" pitch : %d\n", (int) surface->pitch) [all...] |
/frameworks/base/core/jni/ |
android_view_HardwareRenderer.cpp | 33 EGLAPI void EGLAPIENTRY eglBeginFrame(EGLDisplay dpy, EGLSurface surface); 60 // Surface and display management 65 EGLSurface surface = eglGetCurrentSurface(EGL_DRAW); local 68 eglSurfaceAttrib(display, surface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_PRESERVED); 80 EGLSurface surface = eglGetCurrentSurface(EGL_DRAW); local 84 eglQuerySurface(display, surface, EGL_SWAP_BEHAVIOR, &value); 109 EGLSurface surface = eglGetCurrentSurface(EGL_DRAW); local 115 eglQuerySurface(display, surface, EGL_WIDTH, &value); 118 eglQuerySurface(display, surface, EGL_HEIGHT, &value); 124 eglBeginFrame(display, surface); [all...] |
/frameworks/native/opengl/tests/gl_perf/ |
gl2_perf.cpp | 57 static EGLSurface surface; variable 98 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL); 100 if (surface == EGL_NO_SURFACE) { 111 returnValue = eglMakeCurrent(dpy, surface, surface, context); 116 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 118 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 126 eglSwapBuffers(dpy, surface); 134 eglSwapBuffers(dpy, surface);
|
/external/qemu/distrib/sdl-1.2.15/src/video/windx5/ |
SDL_dx5yuv.c | 41 LPDIRECTDRAWSURFACE3 surface; member in struct:private_yuvhwdata 57 /* Set up the surface description */ 72 /* Create the DirectDraw video surface */ 86 /* Make sure the surface format was set properly */ 161 /* Set up the YUV surface function structure */ 172 hwdata->surface = CreateYUVSurface(this, width, height, format); 173 if ( hwdata->surface == NULL ) { 199 LPDIRECTDRAWSURFACE3 surface; local 202 surface = overlay->hwdata->surface; 244 LPDIRECTDRAWSURFACE3 surface; local 253 LPDIRECTDRAWSURFACE3 surface; local [all...] |
/external/skia/bench/ |
DeferredSurfaceCopyBench.cpp | 45 SkSurface* surface; variable 50 surface = SkSurface::NewRenderTarget(rt->getContext(), info, rt->numSamples()); 54 surface = SkSurface::NewRaster(info); 56 SkAutoTUnref<SkDeferredCanvas> drawingCanvas(SkDeferredCanvas::Create(surface)); 57 surface->unref();
|
/frameworks/native/services/surfaceflinger/tests/resize/ |
resize.cpp | 25 #include <gui/Surface.h> 44 sp<Surface> surface = surfaceControl->getSurface(); local 51 surface->lock(&outBuffer, NULL); 54 surface->unlockAndPost(); 56 surface->lock(&outBuffer); 58 surface->unlockAndPost();
|
/external/chromium_org/third_party/mesa/src/src/gallium/winsys/svga/drm/ |
vmw_context.c | 80 } surface; member in struct:vmw_svga_winsys_context 168 for(i = 0; i < vswc->surface.used + vswc->surface.staged; ++i) { 170 vswc->surface.handles[i]; 172 vmw_svga_winsys_surface_reference(&vswc->surface.handles[i], NULL); 175 vswc->surface.used = 0; 176 vswc->surface.reserved = 0; 221 vswc->surface.used + nr_relocs > vswc->surface.size || 232 assert(vswc->surface.used + nr_relocs <= vswc->surface.size) [all...] |
/external/mesa3d/src/gallium/winsys/svga/drm/ |
vmw_context.c | 80 } surface; member in struct:vmw_svga_winsys_context 168 for(i = 0; i < vswc->surface.used + vswc->surface.staged; ++i) { 170 vswc->surface.handles[i]; 172 vmw_svga_winsys_surface_reference(&vswc->surface.handles[i], NULL); 175 vswc->surface.used = 0; 176 vswc->surface.reserved = 0; 221 vswc->surface.used + nr_relocs > vswc->surface.size || 232 assert(vswc->surface.used + nr_relocs <= vswc->surface.size) [all...] |
/external/chromium_org/content/browser/aura/ |
browser_compositor_output_surface_proxy.cc | 54 BrowserCompositorOutputSurface* surface = surface_map_->Lookup(surface_id); local 55 if (surface) 56 surface->OnUpdateVSyncParameters(timebase, interval);
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r600/ |
r600_texture.c | 64 return rtex->surface.level[level].offset + 65 layer * rtex->surface.level[level].slice_size; 69 struct radeon_surface *surface, 81 surface->npix_x = ptex->width0; 82 surface->npix_y = ptex->height0; 83 surface->npix_z = ptex->depth0; 84 surface->blk_w = util_format_get_blockwidth(ptex->format); 85 surface->blk_h = util_format_get_blockheight(ptex->format); 86 surface->blk_d = 1; 87 surface->array_size = 1 211 struct radeon_surface *surface = &rtex->surface; local 452 struct radeon_surface surface; local 491 struct r600_surface *surface = CALLOC_STRUCT(r600_surface); local 527 struct radeon_surface surface; local [all...] |