Index: src/gpu/GrStencilBuffer.cpp |
diff --git a/src/gpu/GrStencilBuffer.cpp b/src/gpu/GrStencilBuffer.cpp |
index 5aa56e07173c58a3bacabc3fa2a5ef475a70ed8a..16b0150a4d45ba7000ee26bb2c2f8e7d4f348e22 100644 |
--- a/src/gpu/GrStencilBuffer.cpp |
+++ b/src/gpu/GrStencilBuffer.cpp |
@@ -12,10 +12,14 @@ |
#include "GrGpu.h" |
#include "GrResourceCache2.h" |
+void GrStencilBuffer::transferToCache() { |
+ this->getGpu()->getContext()->addStencilBuffer(this); |
+} |
+ |
namespace { |
// we should never have more than one stencil buffer with same combo of (width,height,samplecount) |
void gen_cache_id(int width, int height, int sampleCnt, GrCacheID* cacheID) { |
- static const GrCacheID::Domain gStencilBufferDomain = GrResourceKey::ScratchDomain(); |
+ static const GrCacheID::Domain gStencilBufferDomain = GrCacheID::GenerateDomain(); |
GrCacheID::Key key; |
uint32_t* keyData = key.fData32; |
keyData[0] = width; |