Index: src/gpu/text/GrAtlasTextBlob.h |
diff --git a/src/gpu/text/GrAtlasTextBlob.h b/src/gpu/text/GrAtlasTextBlob.h |
index a5ea6dfdf5cfefdc253a6d704199585854a3ead1..ff371c16743d5e9e219e25e69263ee28c3fbfb8f 100644 |
--- a/src/gpu/text/GrAtlasTextBlob.h |
+++ b/src/gpu/text/GrAtlasTextBlob.h |
@@ -298,6 +298,15 @@ public: |
subRun.setDrawAsDistanceFields(); |
} |
+ // inits the override descriptor on the current run. All following subruns must use this |
+ // descriptor |
+ void initOverride(int runIndex) { |
+ Run& run = fRuns[runIndex]; |
+ // Push back a new subrun to fill and set the override descriptor |
+ run.push_back(); |
+ run.fOverrideDescriptor.reset(new SkAutoDescriptor); |
+ } |
+ |
SkGlyphCache* setupCache(int runIndex, |
const SkSurfaceProps& props, |
const SkPaint& skPaint, |