| Index: src/gpu/text/GrAtlasTextBlob.h
|
| diff --git a/src/gpu/text/GrAtlasTextBlob.h b/src/gpu/text/GrAtlasTextBlob.h
|
| index c24dabd010cc7a2cebb49823335f3a9dd4716e55..a5ea6dfdf5cfefdc253a6d704199585854a3ead1 100644
|
| --- a/src/gpu/text/GrAtlasTextBlob.h
|
| +++ b/src/gpu/text/GrAtlasTextBlob.h
|
| @@ -290,6 +290,14 @@ public:
|
| }
|
| }
|
|
|
| + // sets the last subrun of runIndex to use distance field text
|
| + void setSubRunHasDistanceFields(int runIndex, bool hasLCD) {
|
| + Run& run = fRuns[runIndex];
|
| + Run::SubRunInfo& subRun = run.fSubRunInfo.back();
|
| + subRun.setUseLCDText(hasLCD);
|
| + subRun.setDrawAsDistanceFields();
|
| + }
|
| +
|
| SkGlyphCache* setupCache(int runIndex,
|
| const SkSurfaceProps& props,
|
| const SkPaint& skPaint,
|
|
|