Searched refs:surface (Results 1 - 25 of 583) sorted by relevance

1234567891011>>

/external/qemu/distrib/sdl-1.2.15/src/video/x11/
H A DSDL_x11image_c.h30 extern int X11_AllocHWSurface(_THIS, SDL_Surface *surface);
31 extern void X11_FreeHWSurface(_THIS, SDL_Surface *surface);
32 extern int X11_LockHWSurface(_THIS, SDL_Surface *surface);
33 extern void X11_UnlockHWSurface(_THIS, SDL_Surface *surface);
34 extern int X11_FlipHWSurface(_THIS, SDL_Surface *surface);
/external/chromium_org/ui/gl/
H A Dgl_surface_mac.cc45 scoped_refptr<GLSurface> surface(new GLSurfaceNSView(window));
46 if (!surface->Initialize())
49 return surface;
67 scoped_refptr<GLSurface> surface(new GLSurfaceOSMesa(OSMESA_RGBA,
69 if (!surface->Initialize())
72 return surface;
76 scoped_refptr<GLSurface> surface(new NoOpGLSurfaceCGL(size));
77 if (!surface->Initialize())
80 return surface;
H A Dgl_context_stub.cc18 bool GLContextStub::MakeCurrent(GLSurface* surface) { argument
19 SetCurrent(surface);
23 void GLContextStub::ReleaseCurrent(GLSurface* surface) { argument
27 bool GLContextStub::IsCurrent(GLSurface* surface) { argument
H A Dscoped_make_current.cc14 gfx::GLSurface* surface)
18 surface_(surface),
21 DCHECK(surface);
22 succeeded_ = context->MakeCurrent(surface);
13 ScopedMakeCurrent(gfx::GLContext* context, gfx::GLSurface* surface) argument
H A Dgl_context_osmesa.cc50 bool GLContextOSMesa::MakeCurrent(GLSurface* surface) { argument
53 gfx::Size size = surface->GetSize();
56 surface->GetHandle(),
71 SetCurrent(surface);
73 ReleaseCurrent(surface);
77 if (!surface->OnMakeCurrent(this)) {
85 void GLContextOSMesa::ReleaseCurrent(GLSurface* surface) { argument
86 if (!IsCurrent(surface))
93 bool GLContextOSMesa::IsCurrent(GLSurface* surface) { argument
107 if (surface) {
[all...]
H A Dgl_context_wgl.cc72 bool GLContextWGL::MakeCurrent(GLSurface* surface) { argument
74 if (IsCurrent(surface))
79 if (!wglMakeCurrent(static_cast<HDC>(surface->GetHandle()), context_)) {
87 SetCurrent(surface);
89 ReleaseCurrent(surface);
93 if (!surface->OnMakeCurrent(this)) {
101 void GLContextWGL::ReleaseCurrent(GLSurface* surface) { argument
102 if (!IsCurrent(surface))
109 bool GLContextWGL::IsCurrent(GLSurface* surface) { argument
121 if (surface) {
[all...]
H A Dgl_context_egl.cc92 bool GLContextEGL::MakeCurrent(GLSurface* surface) { argument
94 if (IsCurrent(surface))
99 "surface", surface);
107 surface->GetHandle(),
108 surface->GetHandle(),
118 SetCurrent(surface);
120 ReleaseCurrent(surface);
124 if (!surface->OnMakeCurrent(this)) {
136 void GLContextEGL::ReleaseCurrent(GLSurface* surface) { argument
150 IsCurrent(GLSurface* surface) argument
[all...]
H A Dgl_surface_win.cc20 // This OSMesa GL surface can use GDI to swap the contents of the buffer to a
180 scoped_refptr<GLSurface> surface(
182 if (!surface->Initialize())
185 return surface;
188 scoped_refptr<GLSurface> surface(new NativeViewGLSurfaceEGL(window));
189 if (!surface->Initialize())
192 return surface;
195 scoped_refptr<GLSurface> surface(new NativeViewGLSurfaceWGL(
197 if (!surface->Initialize())
200 return surface;
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/egl/wayland/
H A Dnative_wayland.c148 struct wayland_surface *surface = data; local
153 if (!surface->pending_resource)
156 pipe_resource_reference(&surface->pending_resource, NULL);
164 wayland_window_surface_handle_resize(struct wayland_surface *surface) argument
166 struct wayland_display *display = surface->display;
171 front_resource = resource_surface_get_single_resource(surface->rsurf,
173 if (resource_surface_set_size(surface->rsurf,
174 surface->win->width, surface->win->height)) {
176 if (surface
207 struct wayland_surface *surface = wayland_surface(nsurf); local
230 struct wayland_surface *surface = data; local
254 struct wayland_surface *surface = wayland_surface(nsurf); local
302 struct wayland_surface *surface = wayland_surface(nsurf); local
353 struct wayland_surface *surface = wayland_surface(nsurf); local
376 struct wayland_surface *surface; local
[all...]
/external/mesa3d/src/gallium/state_trackers/egl/wayland/
H A Dnative_wayland.c148 struct wayland_surface *surface = data; local
153 if (!surface->pending_resource)
156 pipe_resource_reference(&surface->pending_resource, NULL);
164 wayland_window_surface_handle_resize(struct wayland_surface *surface) argument
166 struct wayland_display *display = surface->display;
171 front_resource = resource_surface_get_single_resource(surface->rsurf,
173 if (resource_surface_set_size(surface->rsurf,
174 surface->win->width, surface->win->height)) {
176 if (surface
207 struct wayland_surface *surface = wayland_surface(nsurf); local
230 struct wayland_surface *surface = data; local
254 struct wayland_surface *surface = wayland_surface(nsurf); local
302 struct wayland_surface *surface = wayland_surface(nsurf); local
353 struct wayland_surface *surface = wayland_surface(nsurf); local
376 struct wayland_surface *surface; local
[all...]
/external/chromium_org/third_party/skia/src/gpu/
H A DGrClipData.cpp21 void GrClipData::getConservativeBounds(const GrSurface* surface, argument
28 surface->width(),
29 surface->height(),
/external/harfbuzz_ng/util/
H A Dhelper-cairo-ansi.cc34 helper_cairo_surface_write_to_ansi_stream (cairo_surface_t *surface, argument
38 unsigned int width = cairo_image_surface_get_width (surface);
39 unsigned int height = cairo_image_surface_get_height (surface);
40 if (cairo_image_surface_get_format (surface) != CAIRO_FORMAT_RGB24) {
43 if (cairo_image_surface_get_format (surface) == CAIRO_FORMAT_A8) {
47 cairo_mask_surface (cr, surface, 0, 0);
51 cairo_set_source_surface (cr, surface, 0, 0);
55 surface = new_surface;
57 cairo_surface_reference (surface);
59 unsigned int stride = cairo_image_surface_get_stride (surface);
[all...]
H A Dhelper-cairo-ansi.hh34 helper_cairo_surface_write_to_ansi_stream (cairo_surface_t *surface,
/external/skia/src/gpu/
H A DGrClipData.cpp21 void GrClipData::getConservativeBounds(const GrSurface* surface, argument
28 surface->width(),
29 surface->height(),
/external/qemu/distrib/sdl-1.2.15/src/video/
H A DSDL_surface.c35 * Create an empty RGB surface of the appropriate depth
44 SDL_Surface *surface; local
53 /* Check to see if we desire the surface in video memory */
77 /* Allocate the surface */
78 surface = (SDL_Surface *)SDL_malloc(sizeof(*surface));
79 if ( surface == NULL ) {
83 surface->flags = SDL_SWSURFACE;
102 surface->format = SDL_AllocFormat(depth, Rmask, Gmask, Bmask, Amask);
103 if ( surface
158 SDL_Surface *surface; local
175 SDL_SetColorKey(SDL_Surface *surface, Uint32 flag, Uint32 key) argument
225 SDL_SetAlpha(SDL_Surface *surface, Uint32 flag, Uint8 value) argument
283 SDL_SetAlphaChannel(SDL_Surface *surface, Uint8 value) argument
368 SDL_SetClipRect(SDL_Surface *surface, const SDL_Rect *rect) argument
390 SDL_GetClipRect(SDL_Surface *surface, SDL_Rect *rect) argument
736 SDL_LockSurface(SDL_Surface *surface) argument
764 SDL_UnlockSurface(SDL_Surface *surface) argument
791 SDL_ConvertSurface(SDL_Surface *surface, SDL_PixelFormat *format, Uint32 flags) argument
903 SDL_FreeSurface(SDL_Surface *surface) argument
[all...]
H A DSDL_blit.c232 /* Figure out which of many blit routines to set up on a surface */
233 int SDL_CalculateBlit(SDL_Surface *surface) argument
238 if ( (surface->flags & SDL_RLEACCEL) == SDL_RLEACCEL ) {
239 SDL_UnRLESurface(surface, 1);
241 surface->map->sw_blit = NULL;
244 surface->flags &= ~SDL_HWACCEL;
245 if ( surface->map->identity ) {
248 if ( (surface->flags & SDL_HWSURFACE) == SDL_HWSURFACE ) {
250 if ( surface->map->dst->flags & SDL_HWSURFACE ) {
255 if (hw_blit_ok && (surface
[all...]
H A DSDL_RLEaccel_c.h26 extern int SDL_RLESurface(SDL_Surface *surface);
31 extern void SDL_UnRLESurface(SDL_Surface *surface, int recode);
H A DSDL_bmp.c54 SDL_Surface *surface; local
85 surface = NULL;
223 /* Create a compatible surface, note that the colors are RGB ordered */
224 surface = SDL_CreateRGBSurface(SDL_SWSURFACE,
226 if ( surface == NULL ) {
232 palette = (surface->format)->palette;
255 /* Read the surface pixels. Note that the bmp image is upside down */
261 top = (Uint8 *)surface->pixels;
262 end = (Uint8 *)surface->pixels+(surface
364 SDL_Surface *surface; local
[all...]
/external/chromium_org/content/common/gpu/
H A Dimage_transport_surface_linux.cc17 scoped_refptr<gfx::GLSurface> surface = local
19 if (!surface.get())
20 return surface;
22 manager, stub, surface.get(), handle.is_transport()));
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/xvmc/tests/
H A Dtest_surface.c43 XvMCSurface surface = {0}; local
74 assert(XvMCCreateSurface(display, NULL, &surface) == XvMCBadContext);
75 /* Test NULL surface */
78 assert(XvMCCreateSurface(display, &context, &surface) == Success);
79 /* Test surface id assigned */
80 assert(surface.surface_id != 0);
82 assert(surface.context_id == context.context_id);
83 /* Test surface type id assigned and correct */
84 assert(surface.surface_type_id == surface_type_id);
86 assert(surface
[all...]
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/
H A Dtest_surface.c43 XvMCSurface surface = {0}; local
74 assert(XvMCCreateSurface(display, NULL, &surface) == XvMCBadContext);
75 /* Test NULL surface */
78 assert(XvMCCreateSurface(display, &context, &surface) == Success);
79 /* Test surface id assigned */
80 assert(surface.surface_id != 0);
82 assert(surface.context_id == context.context_id);
83 /* Test surface type id assigned and correct */
84 assert(surface.surface_type_id == surface_type_id);
86 assert(surface
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/photon/
H A DSDL_ph_image_c.h42 extern int ph_AllocHWSurface(_THIS, SDL_Surface* surface);
43 extern void ph_FreeHWSurface(_THIS, SDL_Surface* surface);
45 extern int ph_FillHWRect(_THIS, SDL_Surface* surface, SDL_Rect* rect, Uint32 color);
46 extern int ph_LockHWSurface(_THIS, SDL_Surface* surface);
47 extern void ph_UnlockHWSurface(_THIS, SDL_Surface* surface);
48 extern int ph_FlipHWSurface(_THIS, SDL_Surface* surface);
49 extern int ph_SetHWColorKey(_THIS, SDL_Surface* surface, Uint32 key);
50 extern int ph_SetHWAlpha(_THIS, SDL_Surface* surface, Uint8 alpha);
/external/chromium_org/gpu/command_buffer/service/
H A Dgl_context_virtual.cc34 // with the surface (the context already exists), but we do need to
56 bool GLContextVirtual::MakeCurrent(gfx::GLSurface* surface) { argument
58 return shared_context_->MakeVirtuallyCurrent(this, surface);
64 void GLContextVirtual::ReleaseCurrent(gfx::GLSurface* surface) { argument
65 if (IsCurrent(surface)) {
67 shared_context_->ReleaseCurrent(surface);
71 bool GLContextVirtual::IsCurrent(gfx::GLSurface* surface) { argument
72 // If it's a real surface it needs to be current.
73 if (surface &&
74 !surface
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/ataricommon/
H A DSDL_atarigl.c54 static void CopyShadowNull(_THIS, SDL_Surface *surface);
55 static void CopyShadowDirect(_THIS, SDL_Surface *surface);
56 static void CopyShadowRGBTo555(_THIS, SDL_Surface *surface);
57 static void CopyShadowRGBTo565(_THIS, SDL_Surface *surface);
58 static void CopyShadowRGBSwap(_THIS, SDL_Surface *surface);
59 static void CopyShadowRGBToARGB(_THIS, SDL_Surface *surface);
60 static void CopyShadowRGBToABGR(_THIS, SDL_Surface *surface);
61 static void CopyShadowRGBToBGRA(_THIS, SDL_Surface *surface);
62 static void CopyShadowRGBToRGBA(_THIS, SDL_Surface *surface);
63 static void CopyShadow8888To555(_THIS, SDL_Surface *surface);
257 SDL_Surface *surface; local
312 SDL_Surface *surface; local
676 CopyShadowNull(_THIS, SDL_Surface *surface) argument
680 CopyShadowDirect(_THIS, SDL_Surface *surface) argument
702 CopyShadowRGBTo555(_THIS, SDL_Surface *surface) argument
734 CopyShadowRGBTo565(_THIS, SDL_Surface *surface) argument
767 CopyShadowRGBSwap(_THIS, SDL_Surface *surface) argument
798 CopyShadowRGBToARGB(_THIS, SDL_Surface *surface) argument
832 CopyShadowRGBToABGR(_THIS, SDL_Surface *surface) argument
866 CopyShadowRGBToBGRA(_THIS, SDL_Surface *surface) argument
900 CopyShadowRGBToRGBA(_THIS, SDL_Surface *surface) argument
934 CopyShadow8888To555(_THIS, SDL_Surface *surface) argument
968 CopyShadow8888To565(_THIS, SDL_Surface *surface) argument
1005 ConvertNull(_THIS, SDL_Surface *surface) argument
1009 Convert565To555be(_THIS, SDL_Surface *surface) argument
1028 Convert565To555le(_THIS, SDL_Surface *surface) argument
1048 Convert565le(_THIS, SDL_Surface *surface) argument
1067 ConvertBGRAToABGR(_THIS, SDL_Surface *surface) argument
[all...]
/external/skia/tests/
H A DDeferredCanvasTest.cpp86 SkAutoTUnref<MockSurface> surface(SkNEW_ARGS(MockSurface, (10, 10)));
87 SkAutoTUnref<SkDeferredCanvas> canvas(SkDeferredCanvas::Create(surface.get()));
96 surface->clearCounts();
98 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
99 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
101 surface->clearCounts();
103 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
104 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
108 surface->clearCounts();
110 REPORTER_ASSERT(reporter, 0 == surface
689 getSurfacePixelPtr(SkSurface* surface, bool useGpu) argument
701 SkSurface* surface; local
768 SkSurface* surface; local
[all...]

Completed in 395 milliseconds

1234567891011>>