/third_party/skia/tests/ |
D | RectangleTextureTest.cpp | 88 skgpu::SurfaceContext* dstContext, in test_copy_to_surface() argument 91 int pixelCnt = dstContext->width() * dstContext->height(); in test_copy_to_surface() 93 for (int y = 0; y < dstContext->width(); ++y) { in test_copy_to_surface() 94 for (int x = 0; x < dstContext->height(); ++x) { in test_copy_to_surface() 95 pixels.get()[y * dstContext->width() + x] = in test_copy_to_surface() 101 auto origin = dstContext->origin(); in test_copy_to_surface() 105 dstContext->dimensions()); in test_copy_to_surface() 106 GrCPixmap pixmap(info, pixels.get(), dstContext->width()*sizeof(uint32_t)); in test_copy_to_surface() 113 SkAssertResult(dstContext->testCopy(srcView.refProxy())); in test_copy_to_surface() 114 TestReadPixels(reporter, dContext, dstContext, pixels.get(), testName); in test_copy_to_surface()
|
D | TestUtils.cpp | 53 skgpu::SurfaceContext* dstContext, in TestWritePixels() argument 56 SkImageInfo ii = SkImageInfo::Make(dstContext->dimensions(), in TestWritePixels() 61 for (int y = 0; y < dstContext->height(); ++y) { in TestWritePixels() 62 for (int x = 0; x < dstContext->width(); ++x) { in TestWritePixels() 67 bool write = dstContext->writePixels(dContext, pm, {0, 0}); in TestWritePixels() 80 TestReadPixels(reporter, dContext, dstContext, pm.writable_addr32(0, 0), testName); in TestWritePixels() 95 auto dstContext = dContext->priv().makeSC(std::move(view), in TestCopyFromSurface() local 97 SkASSERT(dstContext); in TestCopyFromSurface() 99 TestReadPixels(reporter, dContext, dstContext.get(), expectedPixelValues, testName); in TestCopyFromSurface()
|
D | CopySurfaceTest.cpp | 107 auto dstContext = dContext->priv().makeSC(std::move(dstView), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 112 result = dstContext->testCopy(srcView.refProxy(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 116 SkASSERT(dstContext->asFillContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 117 result = dstContext->asFillContext()->blitTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 164 if (!dstContext->readPixels(dContext, readPM, {0, 0})) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/third_party/flutter/skia/tests/ |
D | TestUtils.cpp | 46 GrSurfaceContext* dstContext, bool expectedToWork, in test_write_pixels() argument 48 int pixelCnt = dstContext->width() * dstContext->height(); in test_write_pixels() 50 for (int y = 0; y < dstContext->width(); ++y) { in test_write_pixels() 51 for (int x = 0; x < dstContext->height(); ++x) { in test_write_pixels() 52 pixels.get()[y * dstContext->width() + x] = in test_write_pixels() 57 SkImageInfo ii = SkImageInfo::Make(dstContext->width(), dstContext->height(), in test_write_pixels() 59 bool write = dstContext->writePixels(ii, pixels.get(), 0, {0, 0}); in test_write_pixels() 72 test_read_pixels(reporter, dstContext, pixels.get(), testName); in test_write_pixels() 82 sk_sp<GrSurfaceContext> dstContext = context->priv().makeWrappedSurfaceContext( in test_copy_from_surface() local 84 SkASSERT(dstContext.get()); in test_copy_from_surface() [all …]
|
D | RectangleTextureTest.cpp | 94 GrSurfaceContext* dstContext, in test_copy_to_surface() argument 97 int pixelCnt = dstContext->width() * dstContext->height(); in test_copy_to_surface() 99 for (int y = 0; y < dstContext->width(); ++y) { in test_copy_to_surface() 100 for (int x = 0; x < dstContext->height(); ++x) { in test_copy_to_surface() 101 pixels.get()[y * dstContext->width() + x] = in test_copy_to_surface() 107 auto origin = dstContext->asSurfaceProxy()->origin(); in test_copy_to_surface() 109 context, renderable, dstContext->width(), dstContext->height(), in test_copy_to_surface() 113 SkAssertResult(dstContext->testCopy(src.get())); in test_copy_to_surface() 114 test_read_pixels(reporter, dstContext, pixels.get(), testName); in test_copy_to_surface()
|
D | CopySurfaceTest.cpp | 106 sk_sp<GrSurfaceContext> dstContext = in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 114 result = dstContext->testCopy(src.get(), srcRect, dstPoint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 116 SkASSERT(dstContext->asRenderTargetContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 117 result = dstContext->asRenderTargetContext()->blitTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 163 if (!dstContext->readPixels(ii, read.get(), kRowBytes, {0, 0})) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/third_party/skia/src/gpu/ |
D | GrSurfaceProxy.cpp | 292 auto dstContext = rContext->priv().makeSC(info, in Copy() local 302 if (dstContext && (copyTask = dstContext->copy(src, srcRect, dstPoint))) { in Copy() 306 return dstContext->asSurfaceProxyRef(); in Copy() 310 auto dstContext = rContext->priv().makeSFC(kUnknown_SkAlphaType, in Copy() local 323 if (dstContext && dstContext->blitTexture(std::move(view), srcRect, dstPoint)) { in Copy() 325 *outTask = dstContext->refRenderTask(); in Copy() 327 return dstContext->asSurfaceProxyRef(); in Copy()
|
/third_party/flutter/skia/src/gpu/ |
D | GrSurfaceProxy.cpp | 374 sk_sp<GrTextureContext> dstContext(context->priv().makeDeferredTextureContext( in Copy() local 377 if (!dstContext) { in Copy() 380 if (dstContext->copy(src, srcRect, dstPoint)) { in Copy() 381 return dstContext->asTextureProxyRef(); in Copy() 385 sk_sp<GrRenderTargetContext> dstContext = context->priv().makeDeferredRenderTargetContext( in Copy() local 389 if (dstContext && dstContext->blitTexture(src->asTextureProxy(), srcRect, dstPoint)) { in Copy() 390 return dstContext->asTextureProxyRef(); in Copy()
|
/third_party/ffmpeg/libswscale/tests/ |
D | swscale.c | 100 struct SwsContext *dstContext = NULL, *outContext = NULL; in doTest() local 168 dstContext = sws_getContext(srcW, srcH, srcFormat, dstW, dstH, dstFormat, in doTest() 170 if (!dstContext) { in doTest() 183 sws_scale(dstContext, (const uint8_t * const*)src, srcStride, 0, srcH, dst, dstStride); in doTest() 245 sws_freeContext(dstContext); in doTest()
|