Index: src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp |
diff --git a/src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp b/src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp |
index 28d32198ded9da74215a46c24bb2ccfc6721d46e..59df1fa81d8aed3a705d18e66a9515ecdac51bd8 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) { |