From d14e1a27643125bfef37fa0ed314b64c1fae22b7 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Tue, 7 Oct 2014 07:27:07 -0700 Subject: GrResourceCache2 manages scratch texture. BUG=skia:2889 Review URL: https://codereview.chromium.org/608883003 --- src/gpu/GrClipMaskCache.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gpu/GrClipMaskCache.h') diff --git a/src/gpu/GrClipMaskCache.h b/src/gpu/GrClipMaskCache.h index 6b484e8af8..a2495f1566 100644 --- a/src/gpu/GrClipMaskCache.h +++ b/src/gpu/GrClipMaskCache.h @@ -204,7 +204,9 @@ private: fLastClipGenID = clipGenID; - fLastMask.set(context, desc); + // HACK: set the last param to true to indicate that this request is at + // flush time and therefore we require a scratch texture with no pending IO operations. + fLastMask.set(context, desc, GrContext::kApprox_ScratchTexMatch, /*flushing=*/true); fLastBound = bound; } -- cgit v1.2.3