Chromium Code Reviews| Index: src/gpu/text/GrAtlasTextBlob.h |
| diff --git a/src/gpu/text/GrAtlasTextBlob.h b/src/gpu/text/GrAtlasTextBlob.h |
| index c24dabd010cc7a2cebb49823335f3a9dd4716e55..434fc5143152b5d6048595b6074ddef6b77ca330 100644 |
| --- a/src/gpu/text/GrAtlasTextBlob.h |
| +++ b/src/gpu/text/GrAtlasTextBlob.h |
| @@ -290,6 +290,14 @@ public: |
| } |
| } |
| + // sets the last subrun to use distance field text |
|
bsalomon
2015/12/15 19:43:49
says last but takes an index?
joshualitt
2015/12/15 19:49:28
Comment updated. I think my ultimate goal is to h
|
| + 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, |