/external/skia/modules/canvaskit/tests/ |
D | canvas.spec.js | 20 const surface = CanvasKit.MakeCanvasSurface('test'); 21 expect(surface).toBeTruthy('Could not make surface') 22 if (!surface) { 26 const canvas = surface.getCanvas(); 46 surface.flush(); 51 reportSurface(surface, 'canvas_api_example', done); 58 const surface = CanvasKit.MakeCanvasSurface('test'); 59 expect(surface).toBeTruthy('Could not make surface') 60 if (!surface) { 64 const canvas = surface.getCanvas(); [all …]
|
D | core.spec.js | 20 const surface = CanvasKit.MakeCanvasSurface('test'); 21 expect(surface).toBeTruthy('Could not make surface'); 22 if (!surface) { 28 CanvasKit.LTRBRect(0, 0, surface.width(), surface.height())); 43 const canvas = surface.getCanvas(); 46 reportSurface(surface, 'picture_test', done); 79 const surface = CanvasKit.MakeCanvasSurface('test'); 80 expect(surface).toBeTruthy('Could not make surface'); 81 if (!surface) { 85 const canvas = surface.getCanvas(); [all …]
|
D | path.spec.js | 20 const surface = CanvasKit.MakeCanvasSurface('test'); 21 expect(surface).toBeTruthy('Could not make surface') 22 if (!surface) { 26 const canvas = surface.getCanvas(); 68 surface.flush(); 73 reportSurface(surface, 'path_api_example', done); 120 const surface = CanvasKit.MakeCanvasSurface('test'); 121 expect(surface).toBeTruthy('Could not make surface') 122 if (!surface) { 126 const canvas = surface.getCanvas(); [all …]
|
D | font.spec.js | 37 const surface = CanvasKit.MakeCanvasSurface('test'); 38 expect(surface).toBeTruthy('Could not make surface') 39 if (!surface) { 43 const canvas = surface.getCanvas(); 90 surface.flush(); 100 reportSurface(surface, 'text_shaping', done); 106 const surface = CanvasKit.MakeCanvasSurface('test'); 107 expect(surface).toBeTruthy('Could not make surface') 108 if (!surface) { 112 const canvas = surface.getCanvas(); [all …]
|
D | paragraph.spec.js | 41 const surface = CanvasKit.MakeCanvasSurface('test'); 42 expect(surface).toBeTruthy('Could not make surface') 43 if (!surface) { 47 const canvas = surface.getCanvas(); 110 surface.flush(); 114 reportSurface(surface, 'paragraph_basic', done); 121 const surface = CanvasKit.MakeCanvasSurface('test'); 122 expect(surface).toBeTruthy('Could not make surface') 123 if (!surface) { 127 const canvas = surface.getCanvas(); [all …]
|
/external/mesa3d/src/gallium/frontends/xvmc/ |
D | surface.c | 47 XvMCSurfacePrivate *surface, in MacroBlocksToPipe() argument 100 GetPictureDescription(XvMCSurfacePrivate *surface, struct pipe_mpeg12_picture_desc *desc) in GetPictureDescription() argument 104 assert(surface && desc); in GetPictureDescription() 108 desc->picture_structure = surface->picture_structure; in GetPictureDescription() 110 if (surface->ref[i]) { in GetPictureDescription() 111 XvMCSurfacePrivate *ref = surface->ref[i]->privData; in GetPictureDescription() 120 RecursiveEndFrame(XvMCSurfacePrivate *surface) in RecursiveEndFrame() argument 125 assert(surface); in RecursiveEndFrame() 127 context_priv = surface->context->privData; in RecursiveEndFrame() 130 if (surface->ref[i]) { in RecursiveEndFrame() [all …]
|
/external/mesa3d/src/egl/main/ |
D | eglsurface.c | 441 _eglQuerySurface(_EGLDisplay *disp, _EGLSurface *surface, in _eglQuerySurface() argument 446 *value = surface->Width; in _eglQuerySurface() 449 *value = surface->Height; in _eglQuerySurface() 452 *value = surface->Config->ConfigID; in _eglQuerySurface() 455 if (surface->Type == EGL_PBUFFER_BIT) in _eglQuerySurface() 456 *value = surface->LargestPbuffer; in _eglQuerySurface() 460 if (surface->Type == EGL_PBUFFER_BIT) in _eglQuerySurface() 461 *value = surface->TextureFormat; in _eglQuerySurface() 464 if (surface->Type == EGL_PBUFFER_BIT) in _eglQuerySurface() 465 *value = surface->TextureTarget; in _eglQuerySurface() [all …]
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_texture.c | 56 if (dst->surface.bpe != src->surface.bpe) in si_prepare_for_dma_blit() 186 *stride = tex->surface.u.gfx9.surf_pitch * tex->surface.bpe; in si_texture_get_offset() 187 *layer_stride = tex->surface.u.gfx9.surf_slice_size; in si_texture_get_offset() 194 return tex->surface.u.gfx9.surf_offset + box->z * tex->surface.u.gfx9.surf_slice_size + in si_texture_get_offset() 195 tex->surface.u.gfx9.offset[level] + in si_texture_get_offset() 196 (box->y / tex->surface.blk_h * tex->surface.u.gfx9.surf_pitch + in si_texture_get_offset() 197 box->x / tex->surface.blk_w) * in si_texture_get_offset() 198 tex->surface.bpe; in si_texture_get_offset() 200 *stride = tex->surface.u.legacy.level[level].nblk_x * tex->surface.bpe; in si_texture_get_offset() 201 assert((uint64_t)tex->surface.u.legacy.level[level].slice_size_dw * 4 <= UINT_MAX); in si_texture_get_offset() [all …]
|
D | cik_sdma.c | 39 unsigned tile_index = tex->surface.u.legacy.tiling_index[level]; in encode_tile_info() 40 unsigned macro_tile_index = tex->surface.u.legacy.macro_tile_index; in encode_tile_info() 44 return (set_bpp ? util_logbase2(tex->surface.bpe) : 0) | (G_009910_ARRAY_MODE(tile_mode) << 3) | in encode_tile_info() 47 ((util_logbase2(tex->surface.u.legacy.tile_split >> 6)) << 11) | in encode_tile_info() 63 unsigned bpp = sdst->surface.bpe; in si_sdma_v4_copy_texture() 64 uint64_t dst_address = sdst->buffer.gpu_address + sdst->surface.u.gfx9.surf_offset; in si_sdma_v4_copy_texture() 65 uint64_t src_address = ssrc->buffer.gpu_address + ssrc->surface.u.gfx9.surf_offset; in si_sdma_v4_copy_texture() 66 unsigned dst_pitch = sdst->surface.u.gfx9.surf_pitch; in si_sdma_v4_copy_texture() 67 unsigned src_pitch = ssrc->surface.u.gfx9.surf_pitch; in si_sdma_v4_copy_texture() 68 uint64_t dst_slice_pitch = ((uint64_t)sdst->surface.u.gfx9.surf_slice_size) / bpp; in si_sdma_v4_copy_texture() [all …]
|
/external/crosvm/gpu_display/src/ |
D | lib.rs | 103 surface: DwlSurface, field 110 fn surface(&self) -> *mut dwl_surface { in surface() method 111 self.surface.0 in surface() 226 Some(id) => match self.get_surface(id).map(|p| p.surface()) { in create_surface() 246 let surface = DwlSurface(unsafe { in create_surface() localVariable 259 if surface.0.is_null() { in create_surface() 267 surface, in create_surface() 285 let surface = self.get_surface(surface_id)?; in framebuffer_memory() localVariable 286 let buffer_index = (surface.buffer_index.get() + 1) % BUFFER_COUNT; in framebuffer_memory() 287 surface in framebuffer_memory() [all …]
|
/external/skqp/tests/ |
D | SurfaceTest.cpp | 222 sk_sp<SkSurface>& surface, in test_canvas_peek() argument 227 surface->getCanvas()->clear(color); in test_canvas_peek() 230 bool success = surface->getCanvas()->peekPixels(&pmap); in test_canvas_peek() 234 const void* addr2 = surface->peekPixels(&pmap2) ? pmap2.addr() : nullptr; in test_canvas_peek() 251 auto surface(surface_func(kPremul_SkAlphaType, &requestInfo)); in DEF_TEST() local 252 test_canvas_peek(reporter, surface, requestInfo, true); in DEF_TEST() 258 auto surface(surface_func(ctxInfo.grContext(), kPremul_SkAlphaType, &requestInfo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 259 test_canvas_peek(reporter, surface, requestInfo, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 263 static void test_snapshot_alphatype(skiatest::Reporter* reporter, const sk_sp<SkSurface>& surface, in test_snapshot_alphatype() argument 265 REPORTER_ASSERT(reporter, surface); in test_snapshot_alphatype() [all …]
|
/external/skia/tests/ |
D | SurfaceTest.cpp | 245 sk_sp<SkSurface>& surface, in test_canvas_peek() argument 250 surface->getCanvas()->clear(color); in test_canvas_peek() 253 bool success = surface->getCanvas()->peekPixels(&pmap); in test_canvas_peek() 257 const void* addr2 = surface->peekPixels(&pmap2) ? pmap2.addr() : nullptr; in test_canvas_peek() 274 auto surface(surface_func(kPremul_SkAlphaType, &requestInfo)); in DEF_TEST() local 275 test_canvas_peek(reporter, surface, requestInfo, true); in DEF_TEST() 281 auto surface(surface_func(ctxInfo.grContext(), kPremul_SkAlphaType, &requestInfo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 282 test_canvas_peek(reporter, surface, requestInfo, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 286 static void test_snapshot_alphatype(skiatest::Reporter* reporter, const sk_sp<SkSurface>& surface, in test_snapshot_alphatype() argument 288 REPORTER_ASSERT(reporter, surface); in test_snapshot_alphatype() [all …]
|
D | VkProtectedContextTest.cpp | 159 sk_sp<SkSurface> surface = SkSurface::MakeFromBackendTextureAsRenderTarget( in createSkSurface() local 162 REPORTER_ASSERT(reporter, surface); in createSkSurface() 163 return surface; in createSkSurface() 197 sk_sp<SkSurface> surface = SkSurface::MakeFromBackendTextureAsRenderTarget( in DEF_GPUTEST() local 200 REPORTER_ASSERT(reporter, surface); in DEF_GPUTEST() 244 auto surface = protectedTestHelper->createSkSurface(reporter); in DEF_GPUTEST() local 245 REPORTER_ASSERT(reporter, surface); in DEF_GPUTEST() 247 !surface->readPixels(SkImageInfo(), nullptr, 8, 0, 0)); in DEF_GPUTEST() 250 surface->getBackendTexture(SkSurface::kFlushRead_BackendHandleAccess)); in DEF_GPUTEST() 275 auto surface = protectedTestHelper->createSkSurface(reporter); in DEF_GPUTEST() local [all …]
|
/external/mesa3d/src/intel/isl/ |
D | README | 6 those layouts, and queries the properties of surface formats. 27 counterpart, isl records the intent to use a surface as a depth or stencil 31 - `struct isl_surf` distinguishes between the surface's logical dimension 41 ISL takes care in its equations to correctly handle conversion among surface 43 between a surface's logical layout in the client API and its physical layout 49 - sa: physical surface samples 50 - el: physical surface elements 51 - sa_rows: rows of physical surface samples 52 - el_rows: rows of physical surface elements 56 hardware generation and reflect the surface's layout in memory. [all …]
|
/external/mesa3d/src/gallium/winsys/svga/drm/ |
D | vmw_screen_svga.c | 187 struct vmw_svga_winsys_surface *surface; in vmw_svga_winsys_surface_create() local 196 surface = CALLOC_STRUCT(vmw_svga_winsys_surface); in vmw_svga_winsys_surface_create() 197 if(!surface) in vmw_svga_winsys_surface_create() 200 pipe_reference_init(&surface->refcnt, 1); in vmw_svga_winsys_surface_create() 201 p_atomic_set(&surface->validated, 0); in vmw_svga_winsys_surface_create() 202 surface->screen = vws; in vmw_svga_winsys_surface_create() 203 (void) mtx_init(&surface->mutex, mtx_plain); in vmw_svga_winsys_surface_create() 204 surface->shared = !!(usage & SVGA_SURFACE_USAGE_SHARED); in vmw_svga_winsys_surface_create() 205 provider = (surface->shared) ? vws->pools.gmr : vws->pools.mob_fenced; in vmw_svga_winsys_surface_create() 242 if (buffer_size < VMW_TRY_CACHED_SIZE && !surface->shared) { in vmw_svga_winsys_surface_create() [all …]
|
/external/mesa3d/src/gallium/drivers/zink/ |
D | zink_surface.c | 41 struct zink_surface *surface = CALLOC_STRUCT(zink_surface); in zink_create_surface() local 42 if (!surface) in zink_create_surface() 45 pipe_resource_reference(&surface->base.texture, pres); in zink_create_surface() 46 pipe_reference_init(&surface->base.reference, 1); in zink_create_surface() 47 surface->base.context = pctx; in zink_create_surface() 48 surface->base.format = templ->format; in zink_create_surface() 49 surface->base.width = u_minify(pres->width0, level); in zink_create_surface() 50 surface->base.height = u_minify(pres->height0, level); in zink_create_surface() 51 surface->base.nr_samples = templ->nr_samples; in zink_create_surface() 52 surface->base.u.tex.level = level; in zink_create_surface() [all …]
|
/external/skia/experimental/wasm-skp-debugger/ |
D | cpu.js | 14 var surface = DebuggerView.MakeSurface(canvas.width, canvas.height); 15 if (surface) { 16 surface._canvas = canvas; 19 return surface; 41 var surface = this._getRasterDirectSurface(imageInfo, pixelPtr, width * 4); 42 if (surface) { 43 surface._canvas = null; 44 surface._width = width; 45 surface._height = height; 46 surface._bufferLen = bufferLen; [all …]
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | Action.java | 76 @Nullable Surface surface, in doActionAndScheduleNext() argument 82 doActionAndScheduleNextImpl(player, trackSelector, surface, handler, nextAction); in doActionAndScheduleNext() 100 @Nullable Surface surface, in doActionAndScheduleNextImpl() argument 103 doActionImpl(player, trackSelector, surface); in doActionAndScheduleNextImpl() 105 nextAction.schedule(player, trackSelector, surface, handler); in doActionAndScheduleNextImpl() 119 SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface); in doActionImpl() argument 159 SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument 197 SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument 218 SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument 243 SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument [all …]
|
/external/skqp/experimental/canvaskit/ |
D | cpu.js | 17 var surface = CanvasKit.MakeSurface(canvas.width, canvas.height); 18 if (surface) { 19 surface._canvas = canvas; 21 return surface; 43 var surface = this._getRasterDirectSurface(imageInfo, pixelPtr, width*4); 44 if (surface) { 45 surface._canvas = null; 46 surface._width = width; 47 surface._height = height; 48 surface._pixelLen = pixelLen; [all …]
|
/external/skia/modules/canvaskit/ |
D | cpu.js | 17 var surface = CanvasKit.MakeSurface(canvas.width, canvas.height); 18 if (surface) { 19 surface._canvas = canvas; 21 return surface; 43 var surface = this._getRasterDirectSurface(imageInfo, pixelPtr, width*4); 44 if (surface) { 45 surface._canvas = null; 46 surface._width = width; 47 surface._height = height; 48 surface._pixelLen = pixelLen; [all …]
|
/external/angle/src/tests/egl_tests/ |
D | EGLContextSharingTest.cpp | 68 EGLSurface surface = getEGLWindow()->getSurface(); in TEST_P() local 81 ASSERT_EGL_TRUE(eglMakeCurrent(display, surface, surface, mContexts[1])); in TEST_P() 137 EGLSurface surface = getEGLWindow()->getSurface(); in TEST_P() local 151 ASSERT_EGL_TRUE(eglMakeCurrent(display, surface, surface, mContexts[0])); in TEST_P() 172 ASSERT_EGL_TRUE(eglMakeCurrent(display, surface, surface, mContexts[1])); in TEST_P() 198 ASSERT_EGL_TRUE(eglMakeCurrent(display, surface, surface, mContexts[0])); in TEST_P() 219 EGLSurface surface = getEGLWindow()->getSurface(); in TEST_P() local 229 ASSERT_EGL_TRUE(eglMakeCurrent(display, surface, surface, mContexts[0])); in TEST_P() 238 ASSERT_EGL_TRUE(eglMakeCurrent(display, surface, surface, mContexts[1])); in TEST_P() 260 EGLSurface surface = eglWindow->getSurface(); in TEST_P() local [all …]
|
/external/skqp/src/gpu/ |
D | GrSurfaceProxy.cpp | 83 GrSurfaceProxy::GrSurfaceProxy(sk_sp<GrSurface> surface, GrSurfaceOrigin origin, SkBackingFit fit) in GrSurfaceProxy() argument 84 : INHERITED(std::move(surface)) in GrSurfaceProxy() 114 GrSurface* surface, bool needsStencil) { in AttachStencilIfNeeded() argument 116 GrRenderTarget* rt = surface->asRenderTarget(); in AttachStencilIfNeeded() 154 sk_sp<GrSurface> surface; in createSurfaceImpl() local 171 surface = resourceProvider->createTexture(desc, fBudgeted, texels.get(), mipCount); in createSurfaceImpl() 172 if (surface) { in createSurfaceImpl() 173 SkASSERT(surface->asTexture()); in createSurfaceImpl() 174 SkASSERT(GrMipMapped::kYes == surface->asTexture()->texturePriv().mipMapped()); in createSurfaceImpl() 178 surface = resourceProvider->createApproxTexture(desc, resourceProviderFlags); in createSurfaceImpl() [all …]
|
/external/harfbuzz_ng/util/ |
D | helper-cairo-ansi.cc | 34 helper_cairo_surface_write_to_ansi_stream (cairo_surface_t *surface, in helper_cairo_surface_write_to_ansi_stream() argument 38 unsigned int width = cairo_image_surface_get_width (surface); in helper_cairo_surface_write_to_ansi_stream() 39 unsigned int height = cairo_image_surface_get_height (surface); in helper_cairo_surface_write_to_ansi_stream() 40 if (cairo_image_surface_get_format (surface) != CAIRO_FORMAT_RGB24) { in helper_cairo_surface_write_to_ansi_stream() 43 if (cairo_image_surface_get_format (surface) == CAIRO_FORMAT_A8) { in helper_cairo_surface_write_to_ansi_stream() 47 cairo_mask_surface (cr, surface, 0, 0); in helper_cairo_surface_write_to_ansi_stream() 51 cairo_set_source_surface (cr, surface, 0, 0); in helper_cairo_surface_write_to_ansi_stream() 55 surface = new_surface; in helper_cairo_surface_write_to_ansi_stream() 57 cairo_surface_reference (surface); in helper_cairo_surface_write_to_ansi_stream() 59 unsigned int stride = cairo_image_surface_get_stride (surface); in helper_cairo_surface_write_to_ansi_stream() [all …]
|
/external/skia/gm/ |
D | asyncrescaleandread.cpp | 41 static sk_sp<SkImage> do_read_and_scale(SkSurface* surface, const SkIRect& srcRect, in do_read_and_scale() argument 45 surface->asyncRescaleAndReadPixels(ii, srcRect, rescaleGamma, quality, async_callback, context); in do_read_and_scale() 48 SkASSERT(surface->getCanvas()->getGrContext()); in do_read_and_scale() 49 surface->getCanvas()->getGrContext()->checkAsyncWorkCompletion(); in do_read_and_scale() 59 static sk_sp<SkImage> do_read_and_scale_yuv(SkSurface* surface, SkYUVColorSpace yuvCS, in do_read_and_scale_yuv() argument 70 surface->asyncRescaleAndReadPixelsYUV420(yuvCS, SkColorSpace::MakeSRGB(), srcRect, size, in do_read_and_scale_yuv() 74 SkASSERT(surface->getCanvas()->getGrContext()); in do_read_and_scale_yuv() 75 surface->getCanvas()->getGrContext()->checkAsyncWorkCompletion(); in do_read_and_scale_yuv() 80 auto* gr = surface->getCanvas()->getGrContext(); in do_read_and_scale_yuv() 113 static skiagm::DrawResult do_rescale_grid(SkCanvas* canvas, SkSurface* surface, in do_rescale_grid() argument [all …]
|
/external/skia/src/gpu/ |
D | GrSurfaceProxy.cpp | 96 GrSurfaceProxy::GrSurfaceProxy(sk_sp<GrSurface> surface, in GrSurfaceProxy() argument 100 : fTarget(std::move(surface)) in GrSurfaceProxy() 130 sk_sp<GrSurface> surface; in createSurfaceImpl() local 132 surface = resourceProvider->createApproxTexture(fDimensions, fFormat, renderable, sampleCnt, in createSurfaceImpl() 135 surface = resourceProvider->createTexture(fDimensions, fFormat, renderable, sampleCnt, in createSurfaceImpl() 138 if (!surface) { in createSurfaceImpl() 142 return surface; in createSurfaceImpl() 160 void GrSurfaceProxy::assign(sk_sp<GrSurface> surface) { in assign() argument 161 SkASSERT(!fTarget && surface); in assign() 163 SkDEBUGCODE(this->validateSurface(surface.get());) in assign() [all …]
|