Home
last modified time | relevance | path

Searched refs:surf1 (Results 1 – 5 of 5) sorted by relevance

/third_party/skia/tests/
DGrTextureMipMapInvalidationTest.cpp43 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()
DRecordOptsTest.cpp382 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()
DResourceCacheTest.cpp1829 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()
DSurfaceTest.cpp669 auto surf1(SkSurface::MakeRaster(info, 500, nullptr)); in DEF_TEST() local
670 check_rowbytes_remain_consistent(surf1.get(), reporter); in DEF_TEST()
/third_party/skia/gm/
Dimage.cpp167 sk_sp<SkSurface> surf1(SkSurface::MakeRaster(info)); in onDraw() local
173 test_surface(canvas, surf1.get(), true); in onDraw()