diff options
author | bsalomon <bsalomon@google.com> | 2014-11-24 07:05:15 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-24 07:05:15 -0800 |
commit | 91175f19664a62851da4ca4e0984a7c7c45b258f (patch) | |
tree | 33d518c4804c733e825bccf94c749fd78cd3203e /src/gpu/GrStencilBuffer.h | |
parent | 52e74c6d848931e12d2ba634abc0aae881cd3be1 (diff) |
Use scratch keys for stencil buffers.
BUG=skia:2889
Review URL: https://codereview.chromium.org/747043004
Diffstat (limited to 'src/gpu/GrStencilBuffer.h')
-rw-r--r-- | src/gpu/GrStencilBuffer.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gpu/GrStencilBuffer.h b/src/gpu/GrStencilBuffer.h index 86fef50225..187556bd4c 100644 --- a/src/gpu/GrStencilBuffer.h +++ b/src/gpu/GrStencilBuffer.h @@ -47,9 +47,6 @@ public: !fLastClipStackRect.contains(clipSpaceRect); } - // Places the sb in the cache. The cache takes a ref of the stencil buffer. - void transferToCache(); - static GrResourceKey ComputeKey(int width, int height, int sampleCnt); protected: @@ -60,6 +57,7 @@ protected: , fBits(bits) , fSampleCnt(sampleCnt) , fLastClipStackGenID(SkClipStack::kInvalidGenID) { + this->setScratchKey(ComputeKey(width, height, sampleCnt)); fLastClipStackRect.setEmpty(); } |