/external/mesa3d/src/gallium/state_trackers/egl/wayland/ |
H A D | native_wayland.c | 148 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 D | helper-cairo-ansi.cc | 34 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 D | helper-cairo-ansi.hh | 34 helper_cairo_surface_write_to_ansi_stream (cairo_surface_t *surface,
|
/external/deqp/framework/common/ |
H A D | tcuSurfaceAccess.cpp | 28 SurfaceAccess::SurfaceAccess (tcu::Surface& surface, const tcu::PixelFormat& colorFmt, int x, int y, int width, int height) argument 29 : m_surface (&surface) 38 SurfaceAccess::SurfaceAccess (tcu::Surface& surface, const tcu::PixelFormat& colorFmt) argument 39 : m_surface (&surface) 43 , m_width (surface.getWidth()) 44 , m_height (surface.getHeight())
|
H A D | tcuRasterizationVerifier.hpp | 115 * Verifies pixels in the surface are rasterized within the bounds given 122 bool verifyTriangleGroupRasterization (const tcu::Surface& surface, const TriangleSceneSpec& scene, const RasterizationArguments& args, tcu::TestLog& log, VerificationMode mode = VERIFICATIONMODE_STRICT); 126 * Verifies pixels in the surface are rasterized within the bounds given 133 bool verifyLineGroupRasterization (const tcu::Surface& surface, const LineSceneSpec& scene, const RasterizationArguments& args, tcu::TestLog& log); 137 * Verifies pixels in the surface are rasterized within the bounds given 146 bool verifyClippedTriangulatedLineGroupRasterization (const tcu::Surface& surface, const LineSceneSpec& scene, const RasterizationArguments& args, tcu::TestLog& log); 150 * Verifies points in the surface are rasterized within the bounds given 157 bool verifyPointGroupRasterization (const tcu::Surface& surface, const PointSceneSpec& scene, const RasterizationArguments& args, tcu::TestLog& log); 168 bool verifyTriangleGroupInterpolation (const tcu::Surface& surface, const TriangleSceneSpec& scene, const RasterizationArguments& args, tcu::TestLog& log); 179 LineInterpolationMethod verifyLineGroupInterpolation (const tcu::Surface& surface, cons [all...] |
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/ |
H A D | test_surface.c | 43 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/tests/ |
H A D | skbug5221.cpp | 22 sk_sp<SkSurface> surface(SkSurface::MakeRaster(SkImageInfo::MakeN32Premul(256, 256))); 23 test(surface->getCanvas()); 28 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(contextInfo.grContext(), SkBudgeted::kYes, 30 test(surface->getCanvas());
|
H A D | SurfaceTest.cpp | 92 sk_sp<SkSurface>& surface, 97 surface->getCanvas()->clear(color); 100 bool success = surface->getCanvas()->peekPixels(&pmap); 104 const void* addr2 = surface->peekPixels(&pmap2) ? pmap2.addr() : nullptr; 121 auto surface(surface_func(kPremul_SkAlphaType, &requestInfo)); 122 test_canvas_peek(reporter, surface, requestInfo, true); 129 auto surface(surface_func(ctxInfo.grContext(), kPremul_SkAlphaType, &requestInfo)); 130 test_canvas_peek(reporter, surface, requestInfo, false); 135 static void test_snapshot_alphatype(skiatest::Reporter* reporter, const sk_sp<SkSurface>& surface, argument 137 REPORTER_ASSERT(reporter, surface); 91 test_canvas_peek(skiatest::Reporter* reporter, sk_sp<SkSurface>& surface, const SkImageInfo& requestInfo, bool expectPeekSuccess) argument 179 test_backend_handle_access_copy_on_write( skiatest::Reporter* reporter, SkSurface* surface, SkSurface::BackendHandleAccess mode, GrBackendObject (*func)(SkSurface*, SkSurface::BackendHandleAccess)) argument 228 test_backend_handle_unique_id( skiatest::Reporter* reporter, SkSurface* surface, GrBackendObject (*func)(SkSurface*, SkSurface::BackendHandleAccess)) argument 266 test_copy_on_write(skiatest::Reporter* reporter, SkSurface* surface) argument 352 test_writable_after_snapshot_release(skiatest::Reporter* reporter, SkSurface* surface) argument 485 test_no_canvas1(skiatest::Reporter* reporter, SkSurface* surface, SkSurface::ContentChangeMode mode) argument 492 test_no_canvas2(skiatest::Reporter* reporter, SkSurface* surface, SkSurface::ContentChangeMode mode) argument 534 check_rowbytes_remain_consistent(SkSurface* surface, skiatest::Reporter* reporter) argument 598 sk_sp<SkSurface> surface = SkSurface::MakeFromBackendTexture(context, desc, nullptr); local 621 sk_sp<SkSurface> surface = SkSurface::MakeFromBackendTextureAsRenderTarget(context, desc, local 631 test_surface_clear(skiatest::Reporter* reporter, sk_sp<SkSurface> surface, std::function<sk_sp<GrSurfaceContext>(SkSurface*)> grSurfaceGetter, uint32_t expectedValue) argument 691 auto surface = surface_func(context, kPremul_SkAlphaType, nullptr); local 699 auto surface = surfaceFunc(context, 0, kOrigColor, &textureObject); local 707 test_surface_draw_partially( skiatest::Reporter* reporter, sk_sp<SkSurface> surface, uint32_t origColor) argument 762 auto surface = surfaceFunc(ctxInfo.grContext(), 0, kOrigColor, &textureObject); local 783 auto surface = surfaceFunc(ctxInfo.grContext(), sampleCnt, kOrigColor, &textureObject); local 908 test_overdraw_surface(skiatest::Reporter* r, SkSurface* surface) argument 924 sk_sp<SkSurface> surface = create_surface(); local 931 sk_sp<SkSurface> surface = create_gpu_surface(context); local [all...] |
/external/skia/gm/ |
H A D | discard.cpp | 48 auto surface = SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, info); variable 49 if (nullptr == surface) { 58 surface->getCanvas()->discard(); 63 surface->getCanvas()->drawColor(color); 66 surface->getCanvas()->clear(color); 71 surface->getCanvas()->drawPaint(paint); 74 surface->draw(canvas, 10.f*x, 10.f*y, nullptr); 78 surface->getCanvas()->discard();
|
H A D | textblobgeometrychange.cpp | 48 auto surface = canvas->makeSurface(info, &props); variable 49 if (!surface) { 50 surface = SkSurface::MakeRaster(info, &props); 52 SkCanvas* c = surface->getCanvas(); 65 surface->draw(canvas, 0, 0, nullptr);
|
H A D | fatpathfill.cpp | 35 static void draw_fatpath(SkCanvas* canvas, SkSurface* surface, const SkPath& path) { argument 38 surface->getCanvas()->clear(SK_ColorTRANSPARENT); 39 surface->getCanvas()->drawPath(path, paint); 40 surface->draw(canvas, 0, 0, nullptr); 53 auto surface(new_surface(SMALL_W, SMALL_H)); 66 draw_fatpath(canvas, surface.get(), path);
|
/external/icu/icu4c/source/samples/layout/ |
H A D | gdiglue.h | 30 void rs_gdiRenderingSurfaceSetHDC(rs_surface *surface, HDC hdc); 31 void rs_gdiRenderingSurfaceClose(rs_surface *surface); 33 fm_fontMap *fm_gdiFontMapOpen(rs_surface *surface, const char *fileName, le_int16 pointSize, gs_guiSupport *guiSupport, LEErrorCode *status);
|
H A D | rsurface.cpp | 19 void rs_drawGlyphs(rs_surface *surface, const le_font *font, const LEGlyphID *glyphs, le_int32 count, argument 22 RenderingSurface *rs = (RenderingSurface *) surface;
|
H A D | gdiglue.cpp | 45 void rs_gdiRenderingSurfaceSetHDC(rs_surface *surface, HDC hdc) argument 47 GDISurface *rs = (GDISurface *) surface; 52 void rs_gdiRenderingSurfaceClose(rs_surface *surface) argument 54 GDISurface *rs = (GDISurface *) surface; 59 fm_fontMap *fm_gdiFontMapOpen(rs_surface *surface, const char *fileName, le_int16 pointSize, gs_guiSupport *guiSupport, LEErrorCode *status) argument 61 return (fm_fontMap *) new GDIFontMap((GDISurface *) surface, fileName, pointSize, (GDIGUISupport *) guiSupport, *status);
|
/external/mesa3d/src/egl/main/ |
H A D | eglsurface.c | 97 _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/skia/tools/ |
H A D | ok_dsts.cpp | 13 sk_sp<SkSurface> surface; member in struct:SWDst 27 surface = SkSurface::MakeRaster(info.makeWH(size.width(), size.height())); 28 return src->draw(surface->getCanvas()); 32 return surface->makeImageSnapshot();
|
/external/swiftshader/src/OpenGL/libEGL/ |
H A D | Context.hpp | 31 virtual void makeCurrent(Surface *surface) = 0; 32 virtual void bindTexImage(Surface *surface) = 0;
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | r600_texture.c | 72 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 D | svga_surface.h | 88 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 D | tr_texture.h | 53 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);
|
/external/mesa3d/src/gallium/state_trackers/xvmc/ |
H A D | surface.c | 46 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 D | 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 [all...] |
/external/mesa3d/src/gallium/winsys/svga/drm/ |
H A D | 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 246 vmw_swc_surface_relocation(struct svga_winsys_context *swc, uint32 *where, struct svga_winsys_surface *surface, unsigned flags) argument [all...] |
/external/skia/tools/viewer/sk_app/android/ |
H A D | VulkanWindowContext_android.cpp | 25 VkSurfaceKHR surface; 35 nullptr, &surface); 36 return (VK_SUCCESS == res) ? surface : VK_NULL_HANDLE;
|
/external/mesa3d/src/gallium/drivers/r600/ |
H A D | r600_texture.c | 64 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...] |