aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrStencilBuffer.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-11-24 07:05:15 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-24 07:05:15 -0800
commit91175f19664a62851da4ca4e0984a7c7c45b258f (patch)
tree33d518c4804c733e825bccf94c749fd78cd3203e /src/gpu/GrStencilBuffer.h
parent52e74c6d848931e12d2ba634abc0aae881cd3be1 (diff)
Use scratch keys for stencil buffers.
Diffstat (limited to 'src/gpu/GrStencilBuffer.h')
-rw-r--r--src/gpu/GrStencilBuffer.h4
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();
}