aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp')
-rw-r--r--src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp b/src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp
index 28d32198de..59df1fa81d 100644
--- a/src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp
+++ b/src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp
@@ -158,7 +158,11 @@ void GrAtlasTextBlob::regenInBatch(GrDrawBatch::Target* target,
: run->fDescriptor.getDesc();
if (!*lazyCache || (*lazyCache)->getDescriptor() != *desc) {
- lazyCache->reset(SkGlyphCache::DetachCache(run->fTypeface, run->fEffects, desc));
+ SkScalerContextEffects effects;
+ effects.fPathEffect = run->fPathEffect.get();
+ effects.fRasterizer = run->fRasterizer.get();
+ effects.fMaskFilter = run->fMaskFilter.get();
+ lazyCache->reset(SkGlyphCache::DetachCache(run->fTypeface, effects, desc));
}
if (regenGlyphs) {