Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Unified Diff: src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp

Issue 1993213003: Make GrAtlasTextBlob::run own effects it points to. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/text/GrAtlasTextBlob.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/gpu/text/GrAtlasTextBlob.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698