aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrClipMaskCache.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-10-07 07:27:07 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-07 07:27:07 -0700
commitd14e1a27643125bfef37fa0ed314b64c1fae22b7 (patch)
treef4ee6543d77aff0e233dace6c81403364b79fdba /src/gpu/GrClipMaskCache.h
parentb109ac22b4ec3ab3478f5304c96564a0e9df6170 (diff)
GrResourceCache2 manages scratch texture.
Diffstat (limited to 'src/gpu/GrClipMaskCache.h')
-rw-r--r--src/gpu/GrClipMaskCache.h4
1 files changed, 3 insertions, 1 deletions
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;
}