diff options
author | Herb Derby <herb@google.com> | 2018-03-09 10:15:52 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-09 16:19:40 +0000 |
commit | c2ef4ab423b0cc456425de1f0161e24980652db6 (patch) | |
tree | 2e1f6d71c9bbe560120374f38a73014260b5ccf0 /bench | |
parent | 03cd6e6dec894b3447527f84e7591d62981df433 (diff) | |
download | skqp-c2ef4ab423b0cc456425de1f0161e24980652db6.tar.gz |
Remove all uses of getCache with get.
Holding off on removing definition until android cleans
up its code.
Change-Id: I19cce13d6d1f10f172770a926966761686bc7d6a
Reviewed-on: https://skia-review.googlesource.com/113168
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'bench')
-rw-r--r-- | bench/PathTextBench.cpp | 2 | ||||
-rw-r--r-- | bench/SkGlyphCacheBench.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bench/PathTextBench.cpp b/bench/PathTextBench.cpp index 8920223c35..4e83d33119 100644 --- a/bench/PathTextBench.cpp +++ b/bench/PathTextBench.cpp @@ -47,7 +47,7 @@ private: void onDelayedSetup() override { SkPaint defaultPaint; SkAutoGlyphCache agc(defaultPaint, nullptr, &SkMatrix::I()); - SkGlyphCache* cache = agc.getCache(); + SkGlyphCache* cache = agc.get(); for (int i = 0; i < kNumGlyphs; ++i) { SkGlyphID id = cache->unicharToGlyph(kGlyphs[i]); cache->getScalerContext()->getPath(SkPackedGlyphID(id), &fGlyphs[i]); diff --git a/bench/SkGlyphCacheBench.cpp b/bench/SkGlyphCacheBench.cpp index 1cc257fd3f..c760eb5583 100644 --- a/bench/SkGlyphCacheBench.cpp +++ b/bench/SkGlyphCacheBench.cpp @@ -21,7 +21,7 @@ static void do_font_stuff(SkPaint* paint) { for (SkScalar i = 8; i < 64; i++) { paint->setTextSize(i); SkAutoGlyphCacheNoGamma autoCache(*paint, nullptr, nullptr); - SkGlyphCache* cache = autoCache.getCache(); + SkGlyphCache* cache = autoCache.get(); uint16_t glyphs['z']; for (int c = ' '; c < 'z'; c++) { glyphs[c] = cache->unicharToGlyph(c); |