diff options
Diffstat (limited to 'src/core/SkGlyphCache.cpp')
-rw-r--r-- | src/core/SkGlyphCache.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/core/SkGlyphCache.cpp b/src/core/SkGlyphCache.cpp index 5327d1accb..3475b6037d 100644 --- a/src/core/SkGlyphCache.cpp +++ b/src/core/SkGlyphCache.cpp @@ -9,7 +9,6 @@ #include "SkGraphics.h" #include "SkMutex.h" #include "SkOnce.h" -#include "SkPaintPriv.h" #include "SkPath.h" #include "SkTemplates.h" #include "SkTypeface.h" @@ -387,38 +386,6 @@ void SkGlyphCache::dump() const { SkDebugf("%s\n", msg.c_str()); } -SkExclusiveStrikePtr SkGlyphCache::FindStrikeExclusive(const SkDescriptor& desc) { - return SkStrikeCache::FindStrikeExclusive(desc); -} - -SkExclusiveStrikePtr SkGlyphCache::FindOrCreateStrikeExclusive( - const SkDescriptor& desc, const SkScalerContextEffects& effects, const SkTypeface& typeface) -{ - auto cache = SkGlyphCache::FindStrikeExclusive(desc); - if (cache == nullptr) { - auto scaler = SkStrikeCache::CreateScalerContext(desc, effects, typeface); - cache = SkStrikeCache::CreateStrikeExclusive(desc, std::move(scaler)); - } - return cache; -} - -SkExclusiveStrikePtr SkGlyphCache::FindOrCreateStrikeExclusive( - const SkPaint& paint, - const SkSurfaceProps* surfaceProps, - SkScalerContextFlags scalerContextFlags, - const SkMatrix* deviceMatrix) -{ - SkAutoDescriptor ad; - SkScalerContextEffects effects; - - auto desc = SkScalerContext::CreateDescriptorAndEffectsUsingPaint( - paint, surfaceProps, scalerContextFlags, deviceMatrix, &ad, &effects); - - auto tf = SkPaintPriv::GetTypefaceOrDefault(paint); - - return FindOrCreateStrikeExclusive(*desc, effects, *tf); -} - #ifdef SK_DEBUG void SkGlyphCache::validate() const { |