Index: src/gpu/GrStencilBuffer.cpp |
diff --git a/src/gpu/GrStencilBuffer.cpp b/src/gpu/GrStencilBuffer.cpp |
index 16b0150a4d45ba7000ee26bb2c2f8e7d4f348e22..b288415301162bdc020846e4a2a406b48151ba82 100644 |
--- a/src/gpu/GrStencilBuffer.cpp |
+++ b/src/gpu/GrStencilBuffer.cpp |
@@ -13,6 +13,8 @@ |
#include "GrResourceCache2.h" |
void GrStencilBuffer::transferToCache() { |
+ SkASSERT(!this->cacheAccess().isInCache()); |
+ |
this->getGpu()->getContext()->addStencilBuffer(this); |
} |