/third_party/skia/tests/ |
D | PremulAlphaRoundTripTest.cpp | 134 GrPixmap surf2 = GrPixmap::Allocate(pmInfo); in DEF_TEST() local 135 GrConvertPixels(surf2, read1); in DEF_TEST() 138 GrConvertPixels(read2, surf2); in DEF_TEST() 149 SkDebugf(" -> : %08x\n", get_pixel(surf2, x, y)); in DEF_TEST() 195 SkBitmap surf2; surf2.allocPixels(pmInfo); in DEF_TEST() local 196 convert(surf2, read1); in DEF_TEST() 199 convert(read2, surf2); in DEF_TEST() 206 SkDebugf(" -> : %08x\n", *surf2.getAddr32(x, y)); in DEF_TEST()
|
D | GrTextureMipMapInvalidationTest.cpp | 46 auto surf2 = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 59 surf2->getCanvas()->scale(0.2f, 0.2f); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 60 surf2->getCanvas()->drawImage(surf1->makeImageSnapshot(), 0, 0, sampling); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | WrappedSurfaceCopyOnWriteTest.cpp | 49 sk_sp<SkSurface> surf2 = makeDirectBackendSurface(); in DEF_GPUTEST_FOR_ALL_CONTEXTS() local 50 surf2->getCanvas()->drawImage(img, 0, 0); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
|
D | MultiPictureDocumentTest.cpp | 393 auto surf2 = SkSurface::MakeRaster(info); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 394 surf2->getCanvas()->drawPicture(frames[0].fPicture); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 395 auto img = surf2->makeImageSnapshot(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | ResourceCacheTest.cpp | 1830 auto surf2 = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info, 1, nullptr); in DEF_GPUTEST_FOR_MOCK_CONTEXT() local 1833 drawToSurf(surf2.get()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 1837 surf2->flushAndSubmit(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 1844 drawToSurf(surf2.get()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 1851 drawToSurf(surf2.get()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
|
/third_party/flutter/skia/tests/ |
D | GrTextureMipMapInvalidationTest.cpp | 37 auto surf2 = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 50 surf2->getCanvas()->scale(0.2f, 0.2f); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 51 surf2->getCanvas()->drawImage(surf1->makeImageSnapshot(), 0, 0, &paint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | ResourceCacheTest.cpp | 1737 auto surf2 = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info, 1, nullptr); in DEF_GPUTEST_FOR_MOCK_CONTEXT() local 1740 drawToSurf(surf2.get()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 1744 surf2->flush(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 1751 drawToSurf(surf2.get()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 1758 drawToSurf(surf2.get()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
|
/third_party/flutter/skia/gm/ |
D | surface.cpp | 153 auto surf2(surf->makeSurface(info)); in onDraw() local 154 drawInto(surf2->getCanvas()); in onDraw() 157 SkASSERT(equal(surf->props(), surf2->props())); in onDraw() 159 sk_sp<SkImage> image2(surf2->makeImageSnapshot()); in onDraw()
|
D | image.cpp | 162 sk_sp<SkSurface> surf2(SkSurface::MakeRenderTarget(canvas->getGrContext(), in onDraw() local 168 if (surf2) { in onDraw() 170 test_surface(canvas, surf2.get(), true); in onDraw()
|
/third_party/skia/gm/ |
D | surface.cpp | 156 auto surf2(surf->makeSurface(info)); in onDraw() local 157 drawInto(surf2->getCanvas()); in onDraw() 160 SkASSERT(equal(surf->props(), surf2->props())); in onDraw() 162 sk_sp<SkImage> image2(surf2->makeImageSnapshot()); in onDraw()
|
D | image.cpp | 168 sk_sp<SkSurface> surf2(SkSurface::MakeRenderTarget(canvas->recordingContext(), in onDraw() local 174 if (surf2) { in onDraw() 176 test_surface(canvas, surf2.get(), true); in onDraw()
|