aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrStencilBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrStencilBuffer.h')
-rw-r--r--src/gpu/GrStencilBuffer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/GrStencilBuffer.h b/src/gpu/GrStencilBuffer.h
index 187556bd4c..11eceddb4e 100644
--- a/src/gpu/GrStencilBuffer.h
+++ b/src/gpu/GrStencilBuffer.h
@@ -47,7 +47,7 @@ public:
!fLastClipStackRect.contains(clipSpaceRect);
}
- static GrResourceKey ComputeKey(int width, int height, int sampleCnt);
+ static void ComputeKey(int width, int height, int sampleCnt, GrScratchKey* key);
protected:
GrStencilBuffer(GrGpu* gpu, bool isWrapped, int width, int height, int bits, int sampleCnt)
@@ -57,7 +57,9 @@ protected:
, fBits(bits)
, fSampleCnt(sampleCnt)
, fLastClipStackGenID(SkClipStack::kInvalidGenID) {
- this->setScratchKey(ComputeKey(width, height, sampleCnt));
+ GrScratchKey key;
+ ComputeKey(width, height, sampleCnt, &key);
+ this->setScratchKey(key);
fLastClipStackRect.setEmpty();
}