diff options
author | Herb Derby <herb@google.com> | 2018-04-18 11:36:12 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-18 22:07:13 +0000 |
commit | fa996908466f96ab21908258283995ccec40f2a5 (patch) | |
tree | 40bdfee106e42794fd7595207e974a2a6a4816e5 /src/core/SkRemoteGlyphCache.cpp | |
parent | 881091f62ea5bbcc8c9f856c12aef3c74f9bf991 (diff) |
Move strike cache Find*() to strike cache
BUG=skia:7515
Change-Id: Ic1580d4752d51a62df5427a28f843bc7b3181797
Reviewed-on: https://skia-review.googlesource.com/122020
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/core/SkRemoteGlyphCache.cpp')
-rw-r--r-- | src/core/SkRemoteGlyphCache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkRemoteGlyphCache.cpp b/src/core/SkRemoteGlyphCache.cpp index 9252589461..d73622327f 100644 --- a/src/core/SkRemoteGlyphCache.cpp +++ b/src/core/SkRemoteGlyphCache.cpp @@ -326,7 +326,7 @@ void SkTextBlobCacheDiffCanvas::processGlyphRun( auto typefaceID = SkTypefaceProxy::DownCast(runPaint.getTypeface())->remoteTypefaceID(); auto& diffs = fStrikeCacheDiff->findStrikeDifferences(*desc, typefaceID); - auto cache = SkGlyphCache::FindStrikeExclusive(*desc); + auto cache = SkStrikeCache::FindStrikeExclusive(*desc); bool isSubpixel = SkToBool(rec.fFlags & SkScalerContext::kSubpixelPositioning_Flag); SkAxisAlignment axisAlignment = SkAxisAlignment::kNone_SkAxisAlignment; if (it.positioning() == SkTextBlob::kHorizontal_Positioning) { @@ -480,7 +480,7 @@ static void update_caches_from_strikes_data(SkStrikeClient *client, // TODO: implement effects handling. SkScalerContextEffects effects; - auto strike = SkGlyphCache::FindStrikeExclusive(*desc); + auto strike = SkStrikeCache::FindStrikeExclusive(*desc); if (strike == nullptr) { auto scaler = SkStrikeCache::CreateScalerContext(*desc, effects, *tf); strike = SkStrikeCache::CreateStrikeExclusive(*desc, std::move(scaler), fontMetrics); |