| Index: src/gpu/GrStencilBuffer.h
|
| diff --git a/src/gpu/GrStencilBuffer.h b/src/gpu/GrStencilBuffer.h
|
| index 187556bd4cffc654e86390f8a95f6411e9060576..86fef50225b4cbac3f7c274961ba333d03294be4 100644
|
| --- a/src/gpu/GrStencilBuffer.h
|
| +++ b/src/gpu/GrStencilBuffer.h
|
| @@ -47,6 +47,9 @@ 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:
|
| @@ -57,7 +60,6 @@ protected:
|
| , fBits(bits)
|
| , fSampleCnt(sampleCnt)
|
| , fLastClipStackGenID(SkClipStack::kInvalidGenID) {
|
| - this->setScratchKey(ComputeKey(width, height, sampleCnt));
|
| fLastClipStackRect.setEmpty();
|
| }
|
|
|
|
|