diff options
author | Steve Block <steveblock@google.com> | 2010-05-26 10:11:43 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-05-27 11:14:42 +0100 |
commit | e78cbe89e6f337f2f1fe40315be88f742b547151 (patch) | |
tree | d778000b84a04f24bbad50c7fa66244365e960e9 /WebCore/platform/graphics/skia/SkiaFontWin.cpp | |
parent | 7b582e96e4e909ed7dba1e07153d20fbddaec3f7 (diff) | |
download | external_webkit-e78cbe89e6f337f2f1fe40315be88f742b547151.zip external_webkit-e78cbe89e6f337f2f1fe40315be88f742b547151.tar.gz external_webkit-e78cbe89e6f337f2f1fe40315be88f742b547151.tar.bz2 |
Merge WebKit at r60074: Initial merge by git
Change-Id: I18a2dc5439e36c928351ea829d8fb4e39b062fc7
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; |