aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPaint.h
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-06-01 14:45:44 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-01 20:55:16 +0000
commitd5bee5d50c60eedda697ac305658d3817125e147 (patch)
tree237b9a07901994ecfb41f1a7a026f7c9d7815ae5 /include/core/SkPaint.h
parentc3cbd734f06ced8a1bc4d5529b4a961b10779178 (diff)
add API to change max pointsize for font cache
Bug: skia:6585 Change-Id: I6df8c439dca0a154e8fbfce6d66c536665dff1d7 Reviewed-on: https://skia-review.googlesource.com/18314 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include/core/SkPaint.h')
-rw-r--r--include/core/SkPaint.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index 3a10c872aa..5b2283aa19 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -1110,13 +1110,6 @@ private:
* need not match per-se.
*/
kCanonicalTextSizeForPaths = 64,
-
- /*
- * Above this size (taking into account CTM and textSize), we never use
- * the cache for bits or metrics (we might overflow), so we just ask
- * for a caononical size and post-transform that.
- */
- kMaxSizeForGlyphCache = 256,
};
static bool TooBigToUseCache(const SkMatrix& ctm, const SkMatrix& textM);
@@ -1126,11 +1119,7 @@ private:
// have change it to kCanonicalTextSizeForPaths.
SkScalar setupForAsPaths();
- static SkScalar MaxCacheSize2() {
- static const SkScalar kMaxSize = SkIntToScalar(kMaxSizeForGlyphCache);
- static const SkScalar kMag2Max = kMaxSize * kMaxSize;
- return kMag2Max;
- }
+ static SkScalar MaxCacheSize2();
friend class SkAutoGlyphCache;
friend class SkAutoGlyphCacheNoGamma;