| commit | 169612621f00b3fe9f71014079991287d311751a | [log] [tgz] |
|---|---|---|
| author | bsalomon <bsalomon@google.com> | Tue Aug 26 14:01:07 2014 -0700 |
| committer | Commit bot <commit-bot@chromium.org> | Tue Aug 26 14:01:07 2014 -0700 |
| tree | 5a1ab159dc1515cb5d12fc759db2f611b0961eff | |
| parent | 9407eceb2784dd13c135f8f266ffbeb1ffe5fd48 [diff] [blame] |
Make GrGpuResources register with GrResourceCache2 after fully constructed. Committed: https://skia.googlesource.com/skia/+/d68b3e491bb765beb7ca5e4ac8e0c80dedf5a83b R=robertphillips@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/504313002
diff --git a/src/gpu/GrStencilAndCoverTextContext.cpp b/src/gpu/GrStencilAndCoverTextContext.cpp index af4ba64..796183f 100644 --- a/src/gpu/GrStencilAndCoverTextContext.cpp +++ b/src/gpu/GrStencilAndCoverTextContext.cpp
@@ -41,6 +41,7 @@ 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); }