Remove SkAutoGlyphCache

Change-Id: Ia485ce5acd70730d461ce81104595a6b961f5ca6
Reviewed-on: https://skia-review.googlesource.com/116183
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Herb Derby <herb@google.com>
This commit is contained in:
Herb Derby 2018-03-23 11:18:35 -04:00 committed by Skia Commit-Bot
parent 32ccf165ae
commit 2ef4525daf

View File

@ -265,23 +265,6 @@ private:
size_t fMemoryUsed;
};
class SkAutoGlyphCache : public SkExclusiveStrikePtr {
public:
SkAutoGlyphCache() = default;
SkAutoGlyphCache(SkGlyphCache* cache) : INHERITED(cache) {}
/** deprecated: always enables fake gamma */
SkAutoGlyphCache(const SkPaint& paint,
const SkSurfaceProps* surfaceProps,
const SkMatrix* matrix)
: INHERITED(SkGlyphCache::FindOrCreateStrikeExclusive(
paint, surfaceProps, SkScalerContextFlags::kFakeGammaAndBoostContrast, matrix)) {}
private:
using INHERITED = SkExclusiveStrikePtr;
};
#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
class SkAutoGlyphCacheNoGamma : public SkExclusiveStrikePtr {
public:
@ -297,6 +280,4 @@ private:
#define SkAutoGlyphCacheNoGamma(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCacheNoGamma)
#endif
#define SkAutoGlyphCache(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCache)
#endif