/third_party/flutter/skia/tests/ |
D | GrTextureMipMapInvalidationTest.cpp | 34 auto surf1 = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info, 0, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 39 surf1->getCanvas()->drawCircle(128, 128, 50, SkPaint()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 40 surf1->flush(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 43 REPORTER_ASSERT(reporter, isMipped(surf1.get()) == allocateMips); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 51 surf2->getCanvas()->drawImage(surf1->makeImageSnapshot(), 0, 0, &paint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 53 REPORTER_ASSERT(reporter, isMipped(surf1.get()) == allocateMips); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 54 REPORTER_ASSERT(reporter, !allocateMips || !mipsAreDirty(surf1.get())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 57 surf1->getCanvas()->drawCircle(128, 128, 100, SkPaint()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 59 REPORTER_ASSERT(reporter, isMipped(surf1.get()) == allocateMips); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 60 REPORTER_ASSERT(reporter, mipsAreDirty(surf1.get())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | RecordOptsTest.cpp | 394 sk_sp<SkSurface> surf1 = SkSurface::MakeRasterN32Premul(10, 10); in do_savelayer_srcmode() local 396 SkCanvas* c1 = surf1->getCanvas(); in do_savelayer_srcmode() 409 surf1->getCanvas()->drawPicture(rec1.finishRecordingAsPicture()); in do_savelayer_srcmode() 414 REPORTER_ASSERT(r, is_equal(surf0.get(), surf1.get())); in do_savelayer_srcmode() 416 REPORTER_ASSERT(r, is_equal(surf0.get(), surf1.get())); in do_savelayer_srcmode()
|
D | ResourceCacheTest.cpp | 1736 auto surf1 = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info, 1, nullptr); in DEF_GPUTEST_FOR_MOCK_CONTEXT() local 1739 drawToSurf(surf1.get()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 1743 surf1->flush(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 1749 drawToSurf(surf1.get()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 1756 surf1->flush(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 1757 surf1.reset(); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
|
D | SurfaceTest.cpp | 640 auto surf1(SkSurface::MakeRaster(info, 500, nullptr)); in DEF_TEST() local 641 check_rowbytes_remain_consistent(surf1.get(), reporter); in DEF_TEST()
|
/third_party/skia/tests/ |
D | GrTextureMipMapInvalidationTest.cpp | 43 auto surf1 = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info, 0, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 48 surf1->getCanvas()->drawCircle(128, 128, 50, SkPaint()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 49 surf1->flushAndSubmit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 52 REPORTER_ASSERT(reporter, isMipped(surf1.get()) == allocateMips); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 60 surf2->getCanvas()->drawImage(surf1->makeImageSnapshot(), 0, 0, sampling); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 62 REPORTER_ASSERT(reporter, isMipped(surf1.get()) == allocateMips); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 63 REPORTER_ASSERT(reporter, !allocateMips || !mipsAreDirty(surf1.get())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 66 surf1->getCanvas()->drawCircle(128, 128, 100, SkPaint()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 68 REPORTER_ASSERT(reporter, isMipped(surf1.get()) == allocateMips); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 69 REPORTER_ASSERT(reporter, mipsAreDirty(surf1.get())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | RecordOptsTest.cpp | 382 sk_sp<SkSurface> surf1 = SkSurface::MakeRasterN32Premul(10, 10); in do_savelayer_srcmode() local 384 SkCanvas* c1 = surf1->getCanvas(); in do_savelayer_srcmode() 397 surf1->getCanvas()->drawPicture(rec1.finishRecordingAsPicture()); in do_savelayer_srcmode() 402 REPORTER_ASSERT(r, is_equal(surf0.get(), surf1.get())); in do_savelayer_srcmode() 404 REPORTER_ASSERT(r, is_equal(surf0.get(), surf1.get())); in do_savelayer_srcmode()
|
D | ResourceCacheTest.cpp | 1829 auto surf1 = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info, 1, nullptr); in DEF_GPUTEST_FOR_MOCK_CONTEXT() local 1832 drawToSurf(surf1.get()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 1836 surf1->flushAndSubmit(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 1842 drawToSurf(surf1.get()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 1849 surf1->flushAndSubmit(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 1850 surf1.reset(); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
|
D | SurfaceTest.cpp | 669 auto surf1(SkSurface::MakeRaster(info, 500, nullptr)); in DEF_TEST() local 670 check_rowbytes_remain_consistent(surf1.get(), reporter); in DEF_TEST()
|
/third_party/flutter/skia/gm/ |
D | image.cpp | 161 sk_sp<SkSurface> surf1(SkSurface::MakeRaster(info)); in onDraw() local 167 test_surface(canvas, surf1.get(), true); in onDraw()
|
/third_party/skia/gm/ |
D | image.cpp | 167 sk_sp<SkSurface> surf1(SkSurface::MakeRaster(info)); in onDraw() local 173 test_surface(canvas, surf1.get(), true); in onDraw()
|