From 7956b59ba50bbeeaa5bfece6dd9894175168366d Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Thu, 22 Mar 2018 16:10:30 -0400 Subject: 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 Reviewed-by: Herb Derby Commit-Queue: Herb Derby --- samplecode/SamplePathText.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'samplecode') 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 ... -- cgit v1.2.3