diff options
author | Herb Derby <herb@google.com> | 2018-03-21 10:47:30 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-21 15:11:48 +0000 |
commit | 4e34a017231ca164fd25f8f909a3880d23a0d0fc (patch) | |
tree | af5d2db58d5bcb9562d720b833cfa27986113265 /bench | |
parent | 9475aa0f90bd82fcc8e68deb56f70bd816719537 (diff) |
Remove more uses of SkAutoGlyphCache.
Change-Id: I438bfb1a43857aa9e7e29b19e53dd921ec6eab1a
Reviewed-on: https://skia-review.googlesource.com/115604
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'bench')
-rw-r--r-- | bench/PathTextBench.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bench/PathTextBench.cpp b/bench/PathTextBench.cpp index 4e83d33119..c4429fbafd 100644 --- a/bench/PathTextBench.cpp +++ b/bench/PathTextBench.cpp @@ -46,8 +46,7 @@ private: void onDelayedSetup() override { SkPaint defaultPaint; - SkAutoGlyphCache agc(defaultPaint, nullptr, &SkMatrix::I()); - SkGlyphCache* cache = agc.get(); + auto cache = SkGlyphCache::FindOrCreateStrikeExclusive(defaultPaint); for (int i = 0; i < kNumGlyphs; ++i) { SkGlyphID id = cache->unicharToGlyph(kGlyphs[i]); cache->getScalerContext()->getPath(SkPackedGlyphID(id), &fGlyphs[i]); |