Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(932)

Unified Diff: Source/platform/fonts/FontFallbackList.h

Issue 1192223002: Optimize Complex Text Shaping and Caching (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Change CachingWordShaperTest as suggested Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/fonts/FontCache.cpp ('k') | Source/platform/fonts/FontFallbackList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/FontFallbackList.h
diff --git a/Source/platform/fonts/FontFallbackList.h b/Source/platform/fonts/FontFallbackList.h
index 08c30d49d11a28ed5bd6a25a1fdfa685b001134d..7bc0705ed0d801006c63e7e9d8b014e482565785 100644
--- a/Source/platform/fonts/FontFallbackList.h
+++ b/Source/platform/fonts/FontFallbackList.h
@@ -23,7 +23,7 @@
#include "platform/fonts/FontSelector.h"
#include "platform/fonts/SimpleFontData.h"
-#include "platform/fonts/WidthCache.h"
+#include "platform/fonts/shaping/CachingWordShaper.h"
#include "wtf/Forward.h"
#include "wtf/MainThread.h"
@@ -74,7 +74,7 @@ public:
unsigned fontSelectorVersion() const { return m_fontSelectorVersion; }
unsigned generation() const { return m_generation; }
- WidthCache& widthCache() const { return m_widthCache; }
+ CachingWordShaper& cachingWordShaper() const { return m_cachingWordShaper; }
const SimpleFontData* primarySimpleFontData(const FontDescription& fontDescription)
{
@@ -112,7 +112,7 @@ private:
GlyphPageTreeNodeBase* m_pageZero;
mutable const SimpleFontData* m_cachedPrimarySimpleFontData;
RefPtrWillBePersistent<FontSelector> m_fontSelector;
- mutable WidthCache m_widthCache;
+ mutable CachingWordShaper m_cachingWordShaper;
unsigned m_fontSelectorVersion;
mutable int m_familyIndex;
unsigned short m_generation;
« no previous file with comments | « Source/platform/fonts/FontCache.cpp ('k') | Source/platform/fonts/FontFallbackList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698