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

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

Issue 111833006: Avoiding multiple text/string parsing while creating TextRun (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@FontOptPatch1
Patch Set: Fixing review comments for rebasing files Created 7 years 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
Index: Source/platform/fonts/Font.h
diff --git a/Source/platform/fonts/Font.h b/Source/platform/fonts/Font.h
index 1e1e4961746db0f0c09234a71505ff96ba366442..b28b90b67cdbdab6c302f09aa533d6bfe3f461f9 100644
--- a/Source/platform/fonts/Font.h
+++ b/Source/platform/fonts/Font.h
@@ -162,9 +162,8 @@ public:
static void setShouldUseSmoothing(bool);
static bool shouldUseSmoothing();
- enum CodePath { Auto, Simple, Complex, SimpleWithGlyphOverflow };
CodePath codePath(const TextRun&) const;
- static CodePath characterRangeCodePath(const LChar*, unsigned) { return Simple; }
+ static CodePath characterRangeCodePath(const LChar*, unsigned) { return SimplePath; }
static CodePath characterRangeCodePath(const UChar*, unsigned len);
private:

Powered by Google App Engine
This is Rietveld 408576698