Index: src/gpu/GrStencilAndCoverTextContext.cpp |
diff --git a/src/gpu/GrStencilAndCoverTextContext.cpp b/src/gpu/GrStencilAndCoverTextContext.cpp |
index af4ba6434380af7225244ecae71e539fb38eb329..796183feba5e742c2ae37531b3d6083c219761b9 100644 |
--- a/src/gpu/GrStencilAndCoverTextContext.cpp |
+++ b/src/gpu/GrStencilAndCoverTextContext.cpp |
@@ -41,6 +41,7 @@ public: |
if (NULL == glyphs || |
!glyphs->fDesc->equals(cache->getDescriptor() /*checksum collision*/)) { |
glyphs.reset(SkNEW_ARGS(GlyphPathRange, (context, cache->getDescriptor(), stroke))); |
+ glyphs->registerWithCache(); |
context->addResourceToCache(resourceKey, glyphs); |
} |