diff options
Diffstat (limited to 'WebCore/platform/graphics/skia/SkiaFontWin.cpp')
-rw-r--r-- | WebCore/platform/graphics/skia/SkiaFontWin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/platform/graphics/skia/SkiaFontWin.cpp b/WebCore/platform/graphics/skia/SkiaFontWin.cpp index 58fa7d3..4abf914 100644 --- a/WebCore/platform/graphics/skia/SkiaFontWin.cpp +++ b/WebCore/platform/graphics/skia/SkiaFontWin.cpp @@ -77,15 +77,15 @@ struct CachedOutlineKeyHash { static const bool safeToCompareToEmptyOrDeleted = true; }; -typedef ListHashSet<CachedOutlineKey, CachedOutlineKeyHash> OutlineCache; +// The global number of glyph outlines we'll cache. +static const int outlineCacheSize = 256; + +typedef ListHashSet<CachedOutlineKey, outlineCacheSize+1, CachedOutlineKeyHash> OutlineCache; // FIXME: Convert from static constructor to accessor function. WebCore tries to // avoid global constructors to save on start-up time. static OutlineCache outlineCache; -// The global number of glyph outlines we'll cache. -static const int outlineCacheSize = 256; - static SkScalar FIXEDToSkScalar(FIXED fixed) { SkFixed skFixed; |