/external/chromium_org/content/plugin/ |
webplugin_accelerated_surface_proxy_mac.cc | 13 #include "ui/surface/accelerated_surface_mac.h" 14 #include "ui/surface/transport_dib.h" 26 AcceleratedSurface* surface = new AcceleratedSurface; local 29 if (!surface->Initialize(NULL, true, gpu_preference)) { 30 delete surface; 34 return new WebPluginAcceleratedSurfaceProxy(plugin_proxy, surface); 39 AcceleratedSurface* surface) 41 surface_(surface) {
|
/external/chromium_org/third_party/icu/source/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/chromium_org/third_party/mesa/src/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/chromium_org/third_party/mesa/src/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);
|
/external/icu/icu4c/source/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/base/core/java/android/hardware/display/ |
VirtualDisplay.java | 20 import android.view.Surface; 24 * {@link android.view.Surface} that you must provide to {@link DisplayManager#createVirtualDisplay 27 * Because a virtual display renders to a surface provided by the application, it will be 39 private Surface mSurface; 42 IVirtualDisplayCallback token, Surface surface) { 46 mSurface = surface; 57 * Gets the surface that backs the virtual display. 59 public Surface getSurface() { 64 * Sets the surface that backs the virtual display [all...] |
/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 71 surface = eglCreateWindowSurface(dpy, config, window, NULL); 72 if (surface == EGL_NO_SURFACE) { 84 eglMakeCurrent(dpy, surface, surface, context); 85 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 86 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 100 eglSwapBuffers(dpy, surface); 112 eglSwapBuffers(dpy, surface); 115 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/chromium_org/third_party/WebKit/Source/platform/graphics/ |
Canvas2DLayerBridgeTest.cpp | 118 RefPtr<SkSurface> surface = adoptRef(SkSurface::NewRasterPMColor(300, 150)); local 119 OwnPtr<SkDeferredCanvas> canvas = adoptPtr(SkDeferredCanvas::Create(surface.get())); 124 Canvas2DLayerBridgePtr bridge(adoptRef(new Canvas2DLayerBridge(mainMockProvider.release(), canvas.release(), surface, 0, NonOpaque))); 142 RefPtr<SkSurface> surface = adoptRef(SkSurface::NewRasterPMColor(300, 150)); local 143 OwnPtr<SkDeferredCanvas> canvas = adoptPtr(SkDeferredCanvas::Create(surface.get())); 148 Canvas2DLayerBridgePtr bridge(adoptRef(new Canvas2DLayerBridge(mainMockProvider.release(), canvas.release(), surface, 0, NonOpaque))); 152 uint32_t genID = surface->generationID(); 154 EXPECT_EQ(genID, surface->generationID()); 156 EXPECT_EQ(genID, surface->generationID()); 158 EXPECT_EQ(genID, surface->generationID()) 174 RefPtr<SkSurface> surface = adoptRef(SkSurface::NewRasterPMColor(300, 150)); local 188 RefPtr<SkSurface> surface = adoptRef(SkSurface::NewRasterPMColor(300, 150)); 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...] |
/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...] |
/frameworks/native/opengl/tests/gl_perf/ |
gl2_perf.cpp | 57 static EGLSurface surface; variable 99 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL); 101 if (surface == EGL_NO_SURFACE) { 112 returnValue = eglMakeCurrent(dpy, surface, surface, context); 117 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 119 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 127 eglSwapBuffers(dpy, surface); 135 eglSwapBuffers(dpy, surface);
|
/external/chromium_org/skia/ext/ |
bitmap_platform_device_cairo.cc | 23 // Back the destination bitmap by a Cairo surface. The bitmap's 24 // pixelRef takes ownership of the passed-in surface and will call 27 // Note: it may immediately destroy the surface, if it fails to create a bitmap 28 // with pixels, thus the caller must either ref() the surface before hand, or 29 // it must not refer to the surface after this call. 31 cairo_surface_t* surface, 34 if (!surface) { 38 = SkImageInfo::MakeN32Premul(cairo_image_surface_get_width(surface), 39 cairo_image_surface_get_height(surface)); 41 cairo_image_surface_get_data(surface), 124 cairo_surface_t* surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, local 148 cairo_surface_t* surface = cairo_image_surface_create_for_data( local 179 cairo_surface_t* surface = cairo_get_target(cairo_); local [all...] |
/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 | 44 SkSurface* surface; variable 49 surface = SkSurface::NewRenderTarget(rt->getContext(), info, rt->numSamples()); 53 surface = SkSurface::NewRaster(info); 55 SkAutoTUnref<SkDeferredCanvas> drawingCanvas(SkDeferredCanvas::Create(surface)); 56 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...] |