Searched refs:surface (Results 1 - 25 of 374) 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,
H A Dhelper-cairo.cc50 cairo_surface_t *surface; local
52 surface = cairo_ps_surface_create_for_stream (write_func, closure, width, height);
53 cairo_ps_surface_set_eps (surface, true);
55 return surface;
152 cairo_surface_t *surface; member in struct:finalize_closure_t
163 status = helper_cairo_surface_write_to_ansi_stream (closure->surface,
178 cairo_surface_t *surface; local
184 surface = cairo_image_surface_create (CAIRO_FORMAT_A8, w, h);
188 surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, w, h);
191 surface
236 cairo_surface_t *surface; local
389 cairo_surface_t *surface; local
[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/skia/gm/
H A Ddiscard.cpp48 SkSurface* surface = SkSurface::NewRenderTarget(context, SkBudgeted::kNo, info); variable
50 if (nullptr == surface) {
59 surface->getCanvas()->discard();
64 surface->getCanvas()->drawColor(color);
67 surface->getCanvas()->clear(color);
73 surface->getCanvas()->drawPaint(paint);
76 surface->draw(canvas, 10.f*x, 10.f*y, nullptr);
80 surface->getCanvas()->discard();
81 surface->unref();
H A Dfatpathfill.cpp34 static void draw_fatpath(SkCanvas* canvas, SkSurface* surface, const SkPath& path) { argument
37 surface->getCanvas()->clear(SK_ColorTRANSPARENT);
38 surface->getCanvas()->drawPath(path, paint);
39 surface->draw(canvas, 0, 0, nullptr);
52 SkAutoTUnref<SkSurface> surface(new_surface(SMALL_W, SMALL_H));
65 draw_fatpath(canvas, surface, path);
/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/skia/tests/
H A DSurfaceTest.cpp110 SkAutoTUnref<SkSurface> surface(
112 REPORTER_ASSERT(reporter, surface);
113 if (surface) {
115 // in pixels that aren't rendered to via the surface.
119 surface->getCanvas()->drawRect(SkRect::MakeWH(SkIntToScalar(kW), SkIntToScalar(kH)/2),
122 surface->readPixels(readInfo, pixels.get(), kW * sizeof(uint32_t), 0, 0);
155 SkSurface* surface,
162 surface->getCanvas()->clear(color);
164 const void* addr = surface->getCanvas()->peekPixels(&info, &rowBytes);
170 const void* addr2 = surface
154 test_canvas_peek(skiatest::Reporter* reporter, SkSurface* surface, const SkImageInfo& requestInfo, bool expectPeekSuccess) argument
205 test_access_pixels(skiatest::Reporter* reporter, SkSurface* surface) argument
233 test_snapshot_alphatype(skiatest::Reporter* reporter, SkSurface* surface, bool expectOpaque) argument
278 test_backend_handle_access_copy_on_write( skiatest::Reporter* reporter, SkSurface* surface, SkSurface::BackendHandleAccess mode, GrBackendObject (*func)(SkSurface*, SkSurface::BackendHandleAccess)) argument
337 test_unique_image_snap(skiatest::Reporter* reporter, SkSurface* surface, bool surfaceIsDirect, std::function<intptr_t(SkImage*)> imageBackingStore, std::function<intptr_t(SkSurface*)> surfaceBackingStore) argument
455 get_legacy_gen_id(SkSurface* surface) argument
467 test_backend_handle_gen_id( skiatest::Reporter* reporter, SkSurface* surface, GrBackendObject (*func)(SkSurface*, SkSurface::BackendHandleAccess)) argument
484 test_backend_handle_unique_id( skiatest::Reporter* reporter, SkSurface* surface, GrBackendObject (*func)(SkSurface*, SkSurface::BackendHandleAccess)) argument
523 test_copy_on_write(skiatest::Reporter* reporter, SkSurface* surface) argument
610 test_writable_after_snapshot_release(skiatest::Reporter* reporter, SkSurface* surface) argument
738 test_no_canvas1(skiatest::Reporter* reporter, SkSurface* surface, SkSurface::ContentChangeMode mode) argument
745 test_no_canvas2(skiatest::Reporter* reporter, SkSurface* surface, SkSurface::ContentChangeMode mode) argument
789 check_rowbytes_remain_consistent(SkSurface* surface, skiatest::Reporter* reporter) argument
886 SkSurface* surface = surface_func(context, kPremul_SkAlphaType, nullptr); local
906 SkSurface* surface = SkSurface::NewFromBackendTexture(context, desc, nullptr); local
[all...]
H A DDrawFilterTest.cpp30 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(10, 10));
31 SkCanvas* canvas = surface->getCanvas();
/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 Dnanobench.h46 SkAutoTDelete<SkSurface> surface; member in struct:Target
82 if (!surface.get()) {
85 return surface->getCanvas();
/external/skia/tools/skiaserve/urlhandlers/
H A DEnableGPUHandler.cpp36 SkSurface* surface = request->createGPUSurface(); local
37 if (surface) {
38 request->fSurface.reset(surface);
42 return SendError(connection, "Unable to create GPU surface");
/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::__anon14222

Completed in 1522 milliseconds

1234567891011>>