Searched refs:surf1 (Results 1 – 8 of 8) sorted by relevance
/external/skia/tests/ |
D | GrTextureMipMapInvalidationTest.cpp | 30 auto surf1 = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info, 0, in DEF_GPUTEST_FOR_NULLGL_CONTEXT() local 35 surf1->getCanvas()->drawCircle(128, 128, 50, SkPaint()); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 36 surf1->flush(); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 39 REPORTER_ASSERT(reporter, isMipped(surf1.get()) == allocateMips); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 47 surf2->getCanvas()->drawImage(surf1->makeImageSnapshot(), 0, 0, &paint); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 49 REPORTER_ASSERT(reporter, isMipped(surf1.get()) == allocateMips); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 50 REPORTER_ASSERT(reporter, !allocateMips || !mipsAreDirty(surf1.get())); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 53 surf1->getCanvas()->drawCircle(128, 128, 100, SkPaint()); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 55 REPORTER_ASSERT(reporter, isMipped(surf1.get()) == allocateMips); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 56 REPORTER_ASSERT(reporter, mipsAreDirty(surf1.get())); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
|
D | RecordOptsTest.cpp | 395 sk_sp<SkSurface> surf1 = SkSurface::MakeRasterN32Premul(10, 10); in do_savelayer_srcmode() local 397 SkCanvas* c1 = surf1->getCanvas(); in do_savelayer_srcmode() 410 surf1->getCanvas()->drawPicture(rec1.finishRecordingAsPicture()); in do_savelayer_srcmode() 415 REPORTER_ASSERT(r, is_equal(surf0.get(), surf1.get())); in do_savelayer_srcmode() 417 REPORTER_ASSERT(r, is_equal(surf0.get(), surf1.get())); in do_savelayer_srcmode()
|
D | SurfaceTest.cpp | 634 auto surf1(SkSurface::MakeRaster(info, 500, nullptr)); in DEF_TEST() local 635 check_rowbytes_remain_consistent(surf1.get(), reporter); in DEF_TEST()
|
/external/skqp/tests/ |
D | GrTextureMipMapInvalidationTest.cpp | 30 auto surf1 = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info, 0, in DEF_GPUTEST_FOR_NULLGL_CONTEXT() local 35 surf1->getCanvas()->drawCircle(128, 128, 50, SkPaint()); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 36 surf1->getCanvas()->flush(); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 39 REPORTER_ASSERT(reporter, isMipped(surf1.get()) == allocateMips); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 47 surf2->getCanvas()->drawImage(surf1->makeImageSnapshot(), 0, 0, &paint); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 49 REPORTER_ASSERT(reporter, isMipped(surf1.get()) == allocateMips); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 50 REPORTER_ASSERT(reporter, !allocateMips || !mipsAreDirty(surf1.get())); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 53 surf1->getCanvas()->drawCircle(128, 128, 100, SkPaint()); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 55 REPORTER_ASSERT(reporter, isMipped(surf1.get()) == allocateMips); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 56 REPORTER_ASSERT(reporter, mipsAreDirty(surf1.get())); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
|
D | RecordOptsTest.cpp | 395 sk_sp<SkSurface> surf1 = SkSurface::MakeRasterN32Premul(10, 10); in do_savelayer_srcmode() local 397 SkCanvas* c1 = surf1->getCanvas(); in do_savelayer_srcmode() 410 surf1->getCanvas()->drawPicture(rec1.finishRecordingAsPicture()); in do_savelayer_srcmode() 415 REPORTER_ASSERT(r, is_equal(surf0.get(), surf1.get())); in do_savelayer_srcmode() 417 REPORTER_ASSERT(r, is_equal(surf0.get(), surf1.get())); in do_savelayer_srcmode()
|
D | SurfaceTest.cpp | 634 auto surf1(SkSurface::MakeRaster(info, 500, nullptr)); in DEF_TEST() local 635 check_rowbytes_remain_consistent(surf1.get(), reporter); in DEF_TEST()
|
/external/skia/gm/ |
D | image.cpp | 137 sk_sp<SkSurface> surf1(SkSurface::MakeRaster(info)); in onDraw() local 143 test_surface(canvas, surf1.get(), true); in onDraw()
|
/external/skqp/gm/ |
D | image.cpp | 137 sk_sp<SkSurface> surf1(SkSurface::MakeRaster(info)); in onDraw() local 143 test_surface(canvas, surf1.get(), true); in onDraw()
|