Searched refs:dstContext (Results 1 – 5 of 5) sorted by relevance
/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/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/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()
|