8#ifndef SkGraphics_DEFINED
9#define SkGraphics_DEFINED
37 static size_t GetFontCacheLimit();
46 static size_t SetFontCacheLimit(
size_t bytes);
51 static size_t GetFontCacheUsed();
57 static int GetFontCacheCountUsed();
63 static int GetFontCacheCountLimit();
70 static int SetFontCacheCountLimit(
int count);
76 static int GetTypefaceCacheCountLimit();
83 static int SetTypefaceCacheCountLimit(
int count);
90 static void PurgeFontCache();
97 static void PurgePinnedFontCache();
102 static size_t GetResourceCacheTotalBytesUsed();
109 static size_t GetResourceCacheTotalByteLimit();
110 static size_t SetResourceCacheTotalByteLimit(
size_t newLimit);
116 static void PurgeResourceCache();
126 static size_t GetResourceCacheSingleAllocationByteLimit();
127 static size_t SetResourceCacheSingleAllocationByteLimit(
size_t newLimit);
141 static void PurgeAllCaches();
143 typedef std::unique_ptr<SkImageGenerator>
153 static ImageGeneratorFromEncodedDataFactory
154 SetImageGeneratorFromEncodedDataFactory(ImageGeneratorFromEncodedDataFactory);
164 std::unique_ptr<SkOpenTypeSVGDecoder> (*)(
const uint8_t*
svg,
size_t length);
static void dump(const float m[20], SkYUVColorSpace cs, bool rgb2yuv)
std::unique_ptr< SkOpenTypeSVGDecoder >(*)(const uint8_t *svg, size_t length) OpenTypeSVGDecoderFactory