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

1234567891011>>

/external/chromium_org/ui/gl/
H A Dgl_surface_android.cc37 scoped_refptr<GLSurface> surface(new GLSurfaceOSMesaHeadless());
38 if (!surface->Initialize())
40 return surface;
44 scoped_refptr<GLSurface> surface = new NativeViewGLSurfaceEGL(window); local
45 if (surface->Initialize())
46 return surface;
48 scoped_refptr<GLSurface> surface = new GLSurfaceStub(); local
49 if (surface->Initialize())
50 return surface;
61 scoped_refptr<GLSurface> surface(
69 scoped_refptr<GLSurface> surface; local
[all...]
H A Dgl_context_stub.cc18 bool GLContextStub::MakeCurrent(GLSurface* surface) { argument
19 SetCurrent(surface);
24 void GLContextStub::ReleaseCurrent(GLSurface* surface) { argument
28 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();
57 surface->GetHandle(),
72 SetCurrent(surface);
77 if (!surface->OnMakeCurrent(this)) {
86 void GLContextOSMesa::ReleaseCurrent(GLSurface* surface) { argument
87 if (!IsCurrent(surface))
95 bool GLContextOSMesa::IsCurrent(GLSurface* surface) { argument
109 if (surface) {
115 if (buffer != surface
[all...]
H A Dgl_context_wgl.cc72 bool GLContextWGL::MakeCurrent(GLSurface* surface) { argument
74 if (IsCurrent(surface))
80 if (!wglMakeCurrent(static_cast<HDC>(surface->GetHandle()), context_)) {
88 SetCurrent(surface);
93 if (!surface->OnMakeCurrent(this)) {
102 void GLContextWGL::ReleaseCurrent(GLSurface* surface) { argument
103 if (!IsCurrent(surface))
110 bool GLContextWGL::IsCurrent(GLSurface* surface) { argument
122 if (surface) {
123 if (wglGetCurrentDC() != surface
[all...]
/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/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/content/common/gpu/
H A Dimage_transport_surface_linux.cc16 scoped_refptr<gfx::GLSurface> surface = local
18 if (!surface.get())
19 return surface;
21 manager, stub, surface.get()));
H A Dimage_transport_surface_win.cc30 scoped_refptr<gfx::GLSurface> surface = local
32 if (!surface)
33 return surface;
35 manager, stub, surface.get()));
/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/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);
/external/chromium_org/cc/test/
H A Dfake_layer_tree_host_client.cc26 scoped_ptr<OutputSurface> surface; local
29 surface = FakeOutputSurface::CreateDelegatingSoftware(
33 surface = FakeOutputSurface::CreateSoftware(
38 surface = FakeOutputSurface::CreateDelegating3d().PassAs<OutputSurface>();
40 surface = FakeOutputSurface::Create3d().PassAs<OutputSurface>();
42 host_->SetOutputSurface(surface.Pass());
/external/chromium_org/mojo/services/surfaces/
H A Dsurfaces_service_impl.cc22 SurfacePtr surface; local
23 BindToProxy(new SurfacesImpl(manager_, id_namespace, client_), &surface);
24 callback.Run(surface.Pass(), id_namespace);
/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/chromium_org/third_party/skia/gm/
H A Ddiscard.cpp49 SkSurface* surface = SkSurface::NewRenderTarget(context, info); variable
51 if (NULL == surface) {
60 surface->getCanvas()->discard();
65 surface->getCanvas()->drawColor(color);
68 surface->getCanvas()->clear(color);
74 surface->getCanvas()->drawPaint(paint);
77 surface->draw(canvas, 10.f*x, 10.f*y, NULL);
81 surface->getCanvas()->discard();
82 surface->unref();
/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/skia/gm/
H A Ddiscard.cpp49 SkSurface* surface = SkSurface::NewRenderTarget(context, info); variable
51 if (NULL == surface) {
60 surface->getCanvas()->discard();
65 surface->getCanvas()->drawColor(color);
68 surface->getCanvas()->clear(color);
74 surface->getCanvas()->drawPaint(paint);
77 surface->draw(canvas, 10.f*x, 10.f*y, NULL);
81 surface->getCanvas()->discard();
82 surface->unref();
/external/skia/tests/
H A DDeferredCanvasTest.cpp35 SkSurface* surface = SkSurface::NewRasterPMColor(gWidth, gHeight); local
36 surface->getCanvas()->clear(color);
37 return surface;
40 static SkPMColor read_pixel(SkSurface* surface, int x, int y) { argument
48 surface->draw(&canvas, -SkIntToScalar(x), -SkIntToScalar(y), &paint);
55 SkAutoTUnref<SkSurface> surface(createSurface(0xFFFFFFFF));
56 SkAutoTUnref<SkDeferredCanvas> canvas(SkDeferredCanvas::Create(surface.get()));
61 REPORTER_ASSERT(reporter, 0xFFFFFFFF == read_pixel(surface, 0, 0));
66 REPORTER_ASSERT(reporter, 0 == read_pixel(surface, 0, 0));
106 SkAutoTUnref<MockSurface> surface(SkNEW_ARG
684 getSurfacePixelPtr(SkSurface* surface, bool useGpu) argument
691 SkSurface* surface; local
757 SkSurface* surface; local
[all...]
/external/chromium_org/third_party/skia/tests/
H A DDeferredCanvasTest.cpp35 SkSurface* surface = SkSurface::NewRasterPMColor(gWidth, gHeight); local
36 surface->getCanvas()->clear(color);
37 return surface;
40 static SkPMColor read_pixel(SkSurface* surface, int x, int y) { argument
48 surface->draw(&canvas, -SkIntToScalar(x), -SkIntToScalar(y), &paint);
89 SkAutoTUnref<MockSurface> surface(SkNEW_ARGS(MockSurface, (10, 10)));
90 SkAutoTUnref<SkDeferredCanvas> canvas(SkDeferredCanvas::Create(surface.get()));
98 surface->clearCounts();
100 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
101 REPORTER_ASSERT(reporter, 0 == surface
671 get_surface_ptr(SkSurface* surface, bool useGpu) argument
697 SkSurface* surface; local
765 SkSurface* surface; local
[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/cc/surfaces/
H A Dsurface_manager.cc8 #include "cc/surfaces/surface.h"
20 void SurfaceManager::RegisterSurface(Surface* surface) { argument
22 DCHECK(surface);
23 DCHECK(!surface_map_.count(surface->surface_id()));
24 surface_map_[surface->surface_id()] = surface;

Completed in 678 milliseconds

1234567891011>>