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

1234567891011

/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/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/tests/
H A DDeferredCanvasTest.cpp35 SkSurface* surface = SkSurface::NewRasterN32Premul(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);
96 SkAutoTUnref<MockSurface> surface(SkNEW_ARGS(MockSurface, (10, 10)));
97 SkAutoTUnref<SkDeferredCanvas> canvas(SkDeferredCanvas::Create(surface.get()));
107 surface->clearCounts();
109 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount);
110 REPORTER_ASSERT(reporter, 0 == surface
697 get_surface_ptr(SkSurface* surface, bool useGpu) argument
723 SkSurface* surface; local
792 SkSurface* surface; local
[all...]
H A DCTest.cpp22 sk_surface_t* surface = sk_surface_new_raster_direct(&info, pixel, sizeof(uint32_t)); local
25 sk_canvas_t* canvas = sk_surface_get_canvas(surface);
34 sk_surface_unref(surface);
/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.cpp47 SkSurface* surface = SkSurface::NewRenderTarget(context, SkSurface::kNo_Budgeted, info); variable
49 if (NULL == surface) {
58 surface->getCanvas()->discard();
63 surface->getCanvas()->drawColor(color);
66 surface->getCanvas()->clear(color);
72 surface->getCanvas()->drawPaint(paint);
75 surface->draw(canvas, 10.f*x, 10.f*y, NULL);
79 surface->getCanvas()->discard();
80 surface->unref();
H A Dfatpathfill.cpp34 static void draw_fatpath(SkCanvas* canvas, SkSurface* surface, argument
38 surface->getCanvas()->clear(SK_ColorTRANSPARENT);
40 surface->getCanvas()->drawPath(paths[i], paint);
42 surface->draw(canvas, 0, 0, NULL);
69 SkAutoTUnref<SkSurface> surface(new_surface(SMALL_W, SMALL_H));
82 draw_fatpath(canvas, surface, &path, 1);
/external/icu/icu4c/source/samples/layout/
H A Dgdiglue.h27 void rs_gdiRenderingSurfaceSetHDC(rs_surface *surface, HDC hdc);
28 void rs_gdiRenderingSurfaceClose(rs_surface *surface);
30 fm_fontMap *fm_gdiFontMapOpen(rs_surface *surface, const char *fileName, le_int16 pointSize, gs_guiSupport *guiSupport, LEErrorCode *status);
H A Drsurface.cpp16 void rs_drawGlyphs(rs_surface *surface, const le_font *font, const LEGlyphID *glyphs, le_int32 count, argument
19 RenderingSurface *rs = (RenderingSurface *) surface;
H A Dgdiglue.cpp42 void rs_gdiRenderingSurfaceSetHDC(rs_surface *surface, HDC hdc) argument
44 GDISurface *rs = (GDISurface *) surface;
49 void rs_gdiRenderingSurfaceClose(rs_surface *surface) argument
51 GDISurface *rs = (GDISurface *) surface;
56 fm_fontMap *fm_gdiFontMapOpen(rs_surface *surface, const char *fileName, le_int16 pointSize, gs_guiSupport *guiSupport, LEErrorCode *status) argument
58 return (fm_fontMap *) new GDIFontMap((GDISurface *) surface, fileName, pointSize, (GDIGUISupport *) guiSupport, *status);
H A DGDIFontMap.cpp18 GDIFontMap::GDIFontMap(GDISurface *surface, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status) argument
19 : FontMap(fileName, pointSize, guiSupport, status), fSurface(surface)
/external/mesa3d/src/egl/main/
H A Deglsurface.c97 _eglLog(_EGL_WARNING, "bad surface attribute 0x%04x", attr);
108 * Parse the list of surface attributes and return the proper error code.
161 /* window surface attributes */
185 /* pbuffer surface attributes */
258 /* no pixmap surface specific attributes */
265 _eglLog(_EGL_WARNING, "bad surface attribute 0x%04x", attr);
311 /* The config can't be used to create a surface of this type */
352 _eglQuerySurface(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surface, argument
357 *value = surface->Width;
360 *value = surface
425 _eglSurfaceAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surface, EGLint attribute, EGLint value) argument
486 _eglBindTexImage(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surface, EGLint buffer) argument
[all...]
/external/mesa3d/src/gallium/drivers/radeonsi/
H A Dr600_texture.c72 return rtex->surface.level[level].offset +
73 layer * rtex->surface.level[level].slice_size;
76 static int r600_init_surface(struct radeon_surface *surface, argument
80 surface->npix_x = ptex->width0;
81 surface->npix_y = ptex->height0;
82 surface->npix_z = ptex->depth0;
83 surface->blk_w = util_format_get_blockwidth(ptex->format);
84 surface->blk_h = util_format_get_blockheight(ptex->format);
85 surface->blk_d = 1;
86 surface
225 struct radeon_surface *surface = &rtex->surface; local
465 r600_texture_create_object(struct pipe_screen *screen, const struct pipe_resource *base, unsigned array_mode, unsigned pitch_in_bytes_override, unsigned max_buffer_size, struct pb_buffer *buf, boolean alloc_bo, struct radeon_surface *surface) argument
525 struct radeon_surface surface; local
555 struct r600_surface *surface = CALLOC_STRUCT(r600_surface); local
578 r600_surface_destroy(struct pipe_context *pipe, struct pipe_surface *surface) argument
594 struct radeon_surface surface; local
[all...]
/external/mesa3d/src/gallium/drivers/svga/
H A Dsvga_surface.h88 svga_surface(struct pipe_surface *surface) argument
90 assert(surface);
91 return (struct svga_surface *)surface;
96 svga_surface_const(const struct pipe_surface *surface) argument
98 assert(surface);
99 return (const struct svga_surface *)surface;
/external/mesa3d/src/gallium/drivers/trace/
H A Dtr_texture.h53 struct pipe_surface *surface; member in struct:trace_surface
91 trace_surface(struct pipe_surface *surface) argument
93 if(!surface)
95 (void)trace_resource(surface->texture);
96 return (struct trace_surface *)surface;
129 struct pipe_surface *surface);
H A Dtr_texture.c78 struct pipe_surface *surface)
82 if(!surface)
85 assert(surface->texture == tr_res->resource);
91 memcpy(&tr_surf->base, surface, sizeof(struct pipe_surface));
96 tr_surf->surface = surface;
101 pipe_surface_reference(&surface, NULL);
110 pipe_surface_reference(&tr_surf->surface, NULL);
77 trace_surf_create(struct trace_resource *tr_res, struct pipe_surface *surface) argument
/external/mesa3d/src/gallium/state_trackers/xvmc/
H A Dsurface.c46 XvMCSurfacePrivate *surface,
99 GetPictureDescription(XvMCSurfacePrivate *surface, struct pipe_mpeg12_picture_desc *desc) argument
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) argument
124 assert(surface);
126 context_priv = surface->context->privData;
129 if (surface
45 MacroBlocksToPipe(XvMCContextPrivate *context, XvMCSurfacePrivate *surface, unsigned int xvmc_picture_structure, const XvMCMacroBlock *xvmc_mb, const XvMCBlockArray *xvmc_blocks, struct pipe_mpeg12_macroblock *mb, unsigned int num_macroblocks) argument
153 XvMCCreateSurface(Display *dpy, XvMCContext *context, XvMCSurface *surface) argument
313 XvMCFlushSurface(Display *dpy, XvMCSurface *surface) argument
329 XvMCSyncSurface(Display *dpy, XvMCSurface *surface) argument
342 XvMCPutSurface(Display *dpy, XvMCSurface *surface, Drawable drawable, short srcx, short srcy, unsigned short srcw, unsigned short srch, short destx, short desty, unsigned short destw, unsigned short desth, int flags) argument
467 XvMCGetSurfaceStatus(Display *dpy, XvMCSurface *surface, int *status) argument
494 XvMCDestroySurface(Display *dpy, XvMCSurface *surface) argument
524 XvMCHideSurface(Display *dpy, XvMCSurface *surface) argument
[all...]
/external/mesa3d/src/mesa/state_tracker/
H A Dst_atom_framebuffer.c48 * 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
[all...]
/external/mesa3d/src/gallium/winsys/svga/drm/
H A Dvmw_context.c80 } 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
246 vmw_swc_surface_relocation(struct svga_winsys_context *swc, uint32 *where, struct svga_winsys_surface *surface, unsigned flags) argument
[all...]
/external/skia/bench/
H A DDeferredSurfaceCopyBench.cpp40 SkAutoTUnref<SkSurface> surface(canvas->newSurface(info));
43 if (NULL == surface.get()) {
48 SkAutoTUnref<SkDeferredCanvas> drawingCanvas(SkDeferredCanvas::Create(surface));
H A Dnanobench.h44 SkAutoTDelete<SkSurface> surface; member in struct:Target
80 if (!surface.get()) {
83 return surface->getCanvas();
/external/mesa3d/src/gallium/drivers/r600/
H A Dr600_texture.c64 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
68 r600_init_surface(struct r600_screen *rscreen, struct radeon_surface *surface, const struct pipe_resource *ptex, unsigned array_mode, bool is_transfer, bool is_flushed_depth) argument
211 struct radeon_surface *surface = &rtex->surface; local
379 r600_texture_create_object(struct pipe_screen *screen, const struct pipe_resource *base, unsigned pitch_in_bytes_override, struct pb_buffer *buf, boolean alloc_bo, struct radeon_surface *surface) argument
452 struct radeon_surface surface; local
491 struct r600_surface *surface = CALLOC_STRUCT(r600_surface); local
508 r600_surface_destroy(struct pipe_context *pipe, struct pipe_surface *surface) argument
527 struct radeon_surface surface; local
[all...]
/external/mesa3d/src/mesa/drivers/dri/nouveau/
H A Dnouveau_texture.h34 struct nouveau_surface surface; member in struct:nouveau_teximage
36 struct nouveau_surface surface; member in struct:nouveau_teximage::__anon12737
/external/skia/src/gpu/
H A DGrSurfacePriv.h21 * Derive a SkImageInfo from the surface's descriptor. This is lossy as ImageInfo has fields not
27 * Write the contents of the surface to a PNG. Returns true if successful.
37 explicit GrSurfacePriv(GrSurface* surface) : fSurface(surface) {} argument

Completed in 585 milliseconds

1234567891011