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

Unified Diff: src/gpu/GrAtlasTextContext.cpp

Issue 1324953002: Fix for distancefield text uses override descriptor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update comment Created 5 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrAtlasTextContext.cpp
diff --git a/src/gpu/GrAtlasTextContext.cpp b/src/gpu/GrAtlasTextContext.cpp
index 337813801bf899930cdbb26779bb60a60f786f8e..8105be74e699ea447ba2606b3f20bec757435dfd 100644
--- a/src/gpu/GrAtlasTextContext.cpp
+++ b/src/gpu/GrAtlasTextContext.cpp
@@ -1671,8 +1671,9 @@ private:
info.fBulkUseToken.reset();
// We can reuse if we have a valid strike and our descriptors / typeface are the
- // same
- const SkDescriptor* newDesc = run.fOverrideDescriptor ?
+ // same. The override descriptor is only for the non distance field text within
+ // a run
+ const SkDescriptor* newDesc = (run.fOverrideDescriptor && !usesDistanceFields) ?
run.fOverrideDescriptor->getDesc() :
run.fDescriptor.getDesc();
if (!cache || !SkTypeface::Equal(typeface, run.fTypeface) ||
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698