diff options
author | 2014-11-25 05:52:06 -0800 | |
---|---|---|
committer | 2014-11-25 05:52:06 -0800 | |
commit | 10e23caea3106be125acea10a637789e5a15c728 (patch) | |
tree | 80c21f2ab346fc91983b02fcaa4031604803607b /src/gpu/GrStencilBuffer.h | |
parent | 03bee31e553100ba7814cda8351d10645500f154 (diff) |
Use scratch keys for stencil buffers.
BUG=skia:2889
Committed: https://skia.googlesource.com/skia/+/91175f19664a62851da4ca4e0984a7c7c45b258f
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(); } |