aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrStencilBuffer.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-11-25 05:52:06 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-25 05:52:06 -0800
commit10e23caea3106be125acea10a637789e5a15c728 (patch)
tree80c21f2ab346fc91983b02fcaa4031604803607b /src/gpu/GrStencilBuffer.h
parent03bee31e553100ba7814cda8351d10645500f154 (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();
}