diff options
author | 2018-04-18 11:36:12 -0400 | |
---|---|---|
committer | 2018-04-18 22:07:13 +0000 | |
commit | fa996908466f96ab21908258283995ccec40f2a5 (patch) | |
tree | 40bdfee106e42794fd7595207e974a2a6a4816e5 /src/pdf | |
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/pdf')
-rw-r--r-- | src/pdf/SkPDFDevice.cpp | 2 | ||||
-rw-r--r-- | src/pdf/SkPDFFont.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp index 95864d9cb9..ff14c41fae 100644 --- a/src/pdf/SkPDFDevice.cpp +++ b/src/pdf/SkPDFDevice.cpp @@ -1368,7 +1368,7 @@ void SkPDFDevice::internalDrawText( scaledGlyphCachePaint.setTextScaleX(paint.getTextScaleX()); scaledGlyphCachePaint.setTextSkewX(paint.getTextSkewX()); scaledGlyphCachePaint.setTypeface(sk_ref_sp(typeface)); - auto scaledGlyphCache = SkGlyphCache::FindOrCreateStrikeExclusive(scaledGlyphCachePaint); + auto scaledGlyphCache = SkStrikeCache::FindOrCreateStrikeExclusive(scaledGlyphCachePaint); SkTHashMap<SkPDFCanon::BitmapGlyphKey, SkPDFCanon::BitmapGlyph>* map = &this->getCanon()->fBitmapGlyphImages; for (PositionedGlyph positionedGlyph : fMissingGlyphs) { diff --git a/src/pdf/SkPDFFont.cpp b/src/pdf/SkPDFFont.cpp index c9230f017b..11c4b5828b 100644 --- a/src/pdf/SkPDFFont.cpp +++ b/src/pdf/SkPDFFont.cpp @@ -38,7 +38,7 @@ SkExclusiveStrikePtr SkPDFFont::MakeVectorCache(SkTypeface* face, int* size) { } tmpPaint.setTextSize((SkScalar)unitsPerEm); const SkSurfaceProps props(0, kUnknown_SkPixelGeometry); - return SkGlyphCache::FindOrCreateStrikeExclusive( + return SkStrikeCache::FindOrCreateStrikeExclusive( tmpPaint, &props, SkScalerContextFlags::kFakeGammaAndBoostContrast, nullptr); } |