diff options
author | Herb Derby <herb@google.com> | 2018-03-22 16:10:30 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-22 23:47:19 +0000 |
commit | 7956b59ba50bbeeaa5bfece6dd9894175168366d (patch) | |
tree | 959f2254ee342c6c36b8eb448a3720c9dec1e51e /samplecode | |
parent | c912d6133c66df7cde3d64adc76941856a12da64 (diff) |
Remove SkAutoGlyphCache decls that happen to work
...and fix sample code.
Change-Id: I673770125064f8451e3d88ec4929a68409935ad1
Reviewed-on: https://skia-review.googlesource.com/115995
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SamplePathText.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/samplecode/SamplePathText.cpp b/samplecode/SamplePathText.cpp index c6c07ee14c..30c8e63088 100644 --- a/samplecode/SamplePathText.cpp +++ b/samplecode/SamplePathText.cpp @@ -24,8 +24,7 @@ public: PathText() { SkPaint defaultPaint; - SkAutoGlyphCache agc(defaultPaint, nullptr, &SkMatrix::I()); - SkGlyphCache* cache = agc.get(); + auto cache = SkGlyphCache::FindOrCreateStrikeExclusive(defaultPaint); SkPath glyphPaths[52]; for (int i = 0; i < 52; ++i) { // I and l are rects on OS X ... |