Index: src/gpu/GrStencilBuffer.h |
diff --git a/src/gpu/GrStencilBuffer.h b/src/gpu/GrStencilBuffer.h |
index 187556bd4cffc654e86390f8a95f6411e9060576..11eceddb4e92cd786c801adbb3e643d722ab6991 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(); |
} |