diff options
Diffstat (limited to 'tests/ClipStackTest.cpp')
-rw-r--r-- | tests/ClipStackTest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/ClipStackTest.cpp b/tests/ClipStackTest.cpp index 744ef18d17..e3980504f2 100644 --- a/tests/ClipStackTest.cpp +++ b/tests/ClipStackTest.cpp @@ -1413,7 +1413,7 @@ DEF_TEST(ClipStack, reporter) { ////////////////////////////////////////////////////////////////////////////// #if SK_SUPPORT_GPU -sk_sp<GrTexture> GrClipStackClip::testingOnly_createClipMask(GrContext* context) const { +sk_sp<GrTextureProxy> GrClipStackClip::testingOnly_createClipMask(GrContext* context) const { const GrReducedClip reducedClip(*fStack, SkRect::MakeWH(512, 512), 0); return this->createSoftwareClipMask(context, reducedClip); } @@ -1440,8 +1440,9 @@ DEF_GPUTEST_FOR_ALL_CONTEXTS(ClipMaskCache, reporter, ctxInfo) { m.setTranslate(0.5, 0.5); stack.save(); stack.clipPath(path, m, SkClipOp::kIntersect, true); - auto mask = GrClipStackClip(&stack).testingOnly_createClipMask(context); - REPORTER_ASSERT(reporter, 0 == strcmp(mask->getUniqueKey().tag(), kTag)); + sk_sp<GrTextureProxy> mask = GrClipStackClip(&stack).testingOnly_createClipMask(context); + GrTexture* tex = mask->instantiate(context->textureProvider()); + REPORTER_ASSERT(reporter, 0 == strcmp(tex->getUniqueKey().tag(), kTag)); // Make sure mask isn't pinned in cache. mask.reset(nullptr); context->flush(); |