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

1234567891011>>

/external/mesa3d/src/gallium/include/state_tracker/
H A Dvdpau_interop.h51 typedef struct pipe_video_buffer *VdpVideoSurfaceGallium(uint32_t surface);
52 typedef struct pipe_resource *VdpOutputSurfaceGallium(uint32_t surface);
/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/deqp/framework/common/
H A DtcuSurfaceAccess.cpp28 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())
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/
H A Dtest_surface.c46 XvMCSurface surface = {0}; local
78 assert(XvMCCreateSurface(display, NULL, &surface) == XvMCBadContext);
79 /* Test NULL surface */
82 assert(XvMCCreateSurface(display, &context, &surface) == Success);
83 /* Test surface id assigned */
84 assert(surface.surface_id != 0);
86 assert(surface.context_id == context.context_id);
87 /* Test surface type id assigned and correct */
88 assert(surface.surface_type_id == surface_type_id);
90 assert(surface
[all...]
/external/skia/tests/
H A Dskbug5221.cpp22 sk_sp<SkSurface> surface(SkSurface::MakeRaster(SkImageInfo::MakeN32Premul(256, 256)));
23 test(surface->getCanvas());
28 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(
31 test(surface->getCanvas());
H A DSurfaceTest.cpp93 sk_sp<SkSurface>& surface,
98 surface->getCanvas()->clear(color);
101 bool success = surface->getCanvas()->peekPixels(&pmap);
105 const void* addr2 = surface->peekPixels(&pmap2) ? pmap2.addr() : nullptr;
122 auto surface(surface_func(kPremul_SkAlphaType, &requestInfo));
123 test_canvas_peek(reporter, surface, requestInfo, true);
130 auto surface(surface_func(ctxInfo.grContext(), kPremul_SkAlphaType, &requestInfo));
131 test_canvas_peek(reporter, surface, requestInfo, false);
136 static void test_snapshot_alphatype(skiatest::Reporter* reporter, const sk_sp<SkSurface>& surface, argument
138 REPORTER_ASSERT(reporter, surface);
92 test_canvas_peek(skiatest::Reporter* reporter, sk_sp<SkSurface>& surface, const SkImageInfo& requestInfo, bool expectPeekSuccess) argument
180 test_backend_handle_access_copy_on_write( skiatest::Reporter* reporter, SkSurface* surface, SkSurface::BackendHandleAccess mode, GrBackendObject (*func)(SkSurface*, SkSurface::BackendHandleAccess)) argument
229 test_backend_handle_unique_id( skiatest::Reporter* reporter, SkSurface* surface, GrBackendObject (*func)(SkSurface*, SkSurface::BackendHandleAccess)) argument
267 test_copy_on_write(skiatest::Reporter* reporter, SkSurface* surface) argument
353 test_writable_after_snapshot_release(skiatest::Reporter* reporter, SkSurface* surface) argument
486 test_no_canvas1(skiatest::Reporter* reporter, SkSurface* surface, SkSurface::ContentChangeMode mode) argument
493 test_no_canvas2(skiatest::Reporter* reporter, SkSurface* surface, SkSurface::ContentChangeMode mode) argument
535 check_rowbytes_remain_consistent(SkSurface* surface, skiatest::Reporter* reporter) argument
601 sk_sp<SkSurface> surface = SkSurface::MakeFromBackendTexture(context, backendTex, local
627 sk_sp<SkSurface> surface = SkSurface::MakeFromBackendTextureAsRenderTarget( local
638 test_surface_clear(skiatest::Reporter* reporter, sk_sp<SkSurface> surface, std::function<sk_sp<GrSurfaceContext>(SkSurface*)> grSurfaceGetter, uint32_t expectedValue) argument
698 auto surface = surface_func(context, kPremul_SkAlphaType, nullptr); local
706 auto surface = surfaceFunc(context, 0, kOrigColor, &textureObject); local
714 test_surface_draw_partially( skiatest::Reporter* reporter, sk_sp<SkSurface> surface, uint32_t origColor) argument
769 auto surface = surfaceFunc(ctxInfo.grContext(), 0, kOrigColor, &textureObject); local
793 auto surface = surfaceFunc(ctxInfo.grContext(), sampleCnt, kOrigColor, &textureObject); local
925 test_overdraw_surface(skiatest::Reporter* r, SkSurface* surface) argument
940 sk_sp<SkSurface> surface = create_surface(); local
947 sk_sp<SkSurface> surface = create_gpu_surface(context); local
[all...]
/external/skia/gm/
H A Ddiscard.cpp48 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 Dbug6783.cpp27 sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(100, 100); local
31 surface->getCanvas()->drawPaint(p);
33 surface->getCanvas()->drawRect(SkRect::MakeWH(50, 100), p);
35 sk_sp<SkImage> img = surface->makeImageSnapshot();
H A Dtextblobgeometrychange.cpp48 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);
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
H A DFastPathSurfaceView.java48 Surface surface = holder.getSurface();
49 if (surface == null)
54 setSharedBufferMode.invoke(surface, true);
59 Canvas canvas = surface.lockCanvas(null);
61 surface.unlockCanvasAndPost(canvas);
80 Surface surface = getHolder().getSurface();
81 if (surface == null || !isActive)
84 Canvas canvas = surface.lockCanvas(rect);
88 surface.unlockCanvasAndPost(canvas);
/external/icu/icu4c/source/samples/layout/
H A Dgdiglue.h30 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 Drsurface.cpp19 void rs_drawGlyphs(rs_surface *surface, const le_font *font, const LEGlyphID *glyphs, le_int32 count, argument
22 RenderingSurface *rs = (RenderingSurface *) surface;
H A Dgdiglue.cpp45 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/mesa/main/
H A Dvdpau.h54 _mesa_VDPAUIsSurfaceNV(GLintptr surface);
57 _mesa_VDPAUUnregisterSurfaceNV(GLintptr surface);
60 _mesa_VDPAUGetSurfaceivNV(GLintptr surface, GLenum pname, GLsizei bufSize,
64 _mesa_VDPAUSurfaceAccessNV(GLintptr surface, GLenum access);
/external/mesa3d/include/EGL/
H A Deglextchromium.h47 EGLDisplay dpy, EGLSurface surface, EGLuint64CHROMIUM *ust,
51 (EGLDisplay dpy, EGLSurface surface, EGLuint64CHROMIUM *ust,
/external/mesa3d/src/gallium/drivers/trace/
H A Dtr_texture.h61 struct pipe_surface *surface; member in struct:trace_surface
99 trace_surface(struct pipe_surface *surface) argument
101 if (!surface)
103 (void)trace_resource(surface->texture);
104 return (struct trace_surface *)surface;
138 struct pipe_surface *surface);
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_vec4_surface_builder.h34 const src_reg &surface, const src_reg &addr,
39 emit_untyped_write(const vec4_builder &bld, const src_reg &surface,
46 const src_reg &surface, const src_reg &addr,
52 emit_typed_read(const vec4_builder &bld, const src_reg &surface,
56 emit_typed_write(const vec4_builder &bld, const src_reg &surface,
61 emit_typed_atomic(const vec4_builder &bld, const src_reg &surface,
/external/skia/bench/
H A DClipMaskBench.cpp50 sk_sp<SkSurface> surface = SkSurface::MakeRaster(SkImageInfo::MakeA8(size, size));
51 DrawMask(surface->getCanvas());
52 return surface->makeImageSnapshot();
56 sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(size, size);
57 DrawMask(surface->getCanvas());
58 return surface->makeImageSnapshot();
/external/mesa3d/src/gallium/state_trackers/xvmc/
H A Dsurface.c47 XvMCSurfacePrivate *surface,
100 GetPictureDescription(XvMCSurfacePrivate *surface, struct pipe_mpeg12_picture_desc *desc) argument
104 assert(surface && desc);
108 desc->picture_structure = surface->picture_structure;
110 if (surface->ref[i]) {
111 XvMCSurfacePrivate *ref = surface->ref[i]->privData;
120 RecursiveEndFrame(XvMCSurfacePrivate *surface) argument
125 assert(surface);
127 context_priv = surface->context->privData;
130 if (surface
46 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
154 XvMCCreateSurface(Display *dpy, XvMCContext *context, XvMCSurface *surface) argument
320 XvMCFlushSurface(Display *dpy, XvMCSurface *surface) argument
336 XvMCSyncSurface(Display *dpy, XvMCSurface *surface) argument
349 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
472 XvMCGetSurfaceStatus(Display *dpy, XvMCSurface *surface, int *status) argument
499 XvMCDestroySurface(Display *dpy, XvMCSurface *surface) argument
529 XvMCHideSurface(Display *dpy, XvMCSurface *surface) argument
[all...]
/external/mesa3d/src/amd/vulkan/
H A Dradv_image.c52 struct radeon_surf *surface,
63 surface->npix_x = pCreateInfo->extent.width;
64 surface->npix_y = pCreateInfo->extent.height;
65 surface->npix_z = pCreateInfo->extent.depth;
67 surface->blk_w = vk_format_get_blockwidth(pCreateInfo->format);
68 surface->blk_h = vk_format_get_blockheight(pCreateInfo->format);
69 surface->blk_d = 1;
70 surface->array_size = pCreateInfo->arrayLayers;
71 surface->last_level = pCreateInfo->mipLevels - 1;
73 surface
51 radv_init_surface(struct radv_device *device, struct radeon_surf *surface, const struct radv_image_create_info *create_info) argument
435 struct radeon_surf *surface = &image->surface; local
[all...]
/external/mesa3d/src/egl/main/
H A Deglsurface.c65 * Parse the list of surface attributes and return the proper error code.
131 /* window surface attributes */
155 /* pbuffer surface attributes */
230 /* no pixmap surface specific attributes */
249 _eglLog(_EGL_WARNING, "bad surface attribute 0x%04x", attr);
290 /* The config can't be used to create a surface of this type */
338 _eglQuerySurface(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surface, argument
343 *value = surface->Width;
346 *value = surface->Height;
349 *value = surface
426 _eglSurfaceAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surface, EGLint attribute, EGLint value) argument
490 _eglBindTexImage(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surface, EGLint buffer) argument
[all...]
/external/mesa3d/src/gallium/winsys/svga/drm/
H A Dvmw_screen_svga.c55 * Try to get a surface backing buffer from the cache
146 struct vmw_svga_winsys_surface *surface; local
152 surface = CALLOC_STRUCT(vmw_svga_winsys_surface);
153 if(!surface)
156 pipe_reference_init(&surface->refcnt, 1);
157 p_atomic_set(&surface->validated, 0);
158 surface->screen = vws;
159 pipe_mutex_init(surface->mutex);
160 surface->shared = !!(usage & SVGA_SURFACE_USAGE_SHARED);
161 provider = (surface
296 vmw_svga_winsys_surface_is_flushed(struct svga_winsys_screen *sws, struct svga_winsys_surface *surface) argument
[all...]
/external/mesa3d/src/mesa/state_tracker/
H A Dst_atom_framebuffer.c59 struct pipe_surface *surface)
61 assert(surface);
62 assert(surface->width < UINT_MAX);
63 assert(surface->height < UINT_MAX);
64 framebuffer->width = MIN2(framebuffer->width, surface->width);
65 framebuffer->height = MIN2(framebuffer->height, surface->height);
149 /* rendering to a GL texture, may have to update surface */
153 if (strb->surface) {
154 pipe_surface_reference(&framebuffer->cbufs[i], strb->surface);
155 update_framebuffer_size(framebuffer, strb->surface);
58 update_framebuffer_size(struct pipe_framebuffer_state *framebuffer, struct pipe_surface *surface) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_debug_image.c99 struct pipe_surface *surface)
105 if (!surface)
109 * temporary storage for the surface which hasn't been propagated
114 texture = surface->texture;
116 data = pipe_transfer_map(pipe, texture, surface->u.tex.level,
117 surface->u.tex.first_layer,
119 0, 0, surface->width, surface->height, &transfer);
126 util_format_get_nblocksx(texture->format, surface->width),
127 util_format_get_nblocksy(texture->format, surface
97 debug_dump_surface(struct pipe_context *pipe, const char *prefix, struct pipe_surface *surface) argument
140 struct pipe_surface *surface, surf_tmpl; local
187 debug_dump_surface_bmp(struct pipe_context *pipe, const char *filename, struct pipe_surface *surface) argument
[all...]

Completed in 2392 milliseconds

1234567891011>>