diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-12 11:33:56 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-12 11:33:56 +0000 |
commit | 8646bb70e6e5805a32e008f4d5e13e8c511872bb (patch) | |
tree | 79eb0c6f5dfb6e6871cfa54cd85c788ceeb43545 /gpu/GrClipMaskCache.h | |
parent | 56aa703f39cd427fac0ad25181a34962678a6a39 (diff) | |
download | src-8646bb70e6e5805a32e008f4d5e13e8c511872bb.tar.gz |
Turn on GPU AA clipping
https://codereview.appspot.com/6638048/
git-svn-id: http://skia.googlecode.com/svn/trunk/src@5909 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/GrClipMaskCache.h')
-rw-r--r-- | gpu/GrClipMaskCache.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gpu/GrClipMaskCache.h b/gpu/GrClipMaskCache.h index f1152cc6..6722d703 100644 --- a/gpu/GrClipMaskCache.h +++ b/gpu/GrClipMaskCache.h @@ -31,7 +31,7 @@ public: } } - bool canReuse(const SkClipStack& clip, int width, int height) { + bool canReuse(const SkClipStack& clip, const GrIRect& devBounds) { if (fStack.empty()) { GrAssert(false); @@ -41,8 +41,7 @@ public: GrClipStackFrame* back = (GrClipStackFrame*) fStack.back(); if (back->fLastMask.texture() && - back->fLastMask.texture()->width() >= width && - back->fLastMask.texture()->height() >= height && + back->fLastBound == devBounds && clip == back->fLastClip) { return true; } |