diff options
Diffstat (limited to 'samplecode/SamplePathText.cpp')
-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 ... |