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

Side by Side Diff: Source/platform/fonts/FontPlatformData.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/platform/fonts/FontFallbackList.cpp ('k') | Source/platform/fonts/FontPlatformData.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2006, 2007, 2008, Google Inc. All rights reserved. 2 * Copyright (c) 2006, 2007, 2008, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 CGFontRef cgFont() const; 88 CGFontRef cgFont() const;
89 #endif 89 #endif
90 90
91 String fontFamilyName() const; 91 String fontFamilyName() const;
92 float size() const { return m_textSize; } 92 float size() const { return m_textSize; }
93 bool syntheticBold() const { return m_syntheticBold; } 93 bool syntheticBold() const { return m_syntheticBold; }
94 bool syntheticItalic() const { return m_syntheticItalic; } 94 bool syntheticItalic() const { return m_syntheticItalic; }
95 95
96 SkTypeface* typeface() const; 96 SkTypeface* typeface() const;
97 HarfBuzzFace* harfBuzzFace() const; 97 HarfBuzzFace* harfBuzzFace() const;
98 bool hasSpaceInLigaturesOrKerning(TypesettingFeatures) const;
98 SkFontID uniqueID() const; 99 SkFontID uniqueID() const;
99 unsigned hash() const; 100 unsigned hash() const;
100 101
101 FontOrientation orientation() const { return m_orientation; } 102 FontOrientation orientation() const { return m_orientation; }
102 bool isVerticalAnyUpright() const { return blink::isVerticalAnyUpright(m_ori entation); } 103 bool isVerticalAnyUpright() const { return blink::isVerticalAnyUpright(m_ori entation); }
103 void setOrientation(FontOrientation orientation) { m_orientation = orientati on; } 104 void setOrientation(FontOrientation orientation) { m_orientation = orientati on; }
104 void setSyntheticBold(bool syntheticBold) { m_syntheticBold = syntheticBold; } 105 void setSyntheticBold(bool syntheticBold) { m_syntheticBold = syntheticBold; }
105 void setSyntheticItalic(bool syntheticItalic) { m_syntheticItalic = syntheti cItalic; } 106 void setSyntheticItalic(bool syntheticItalic) { m_syntheticItalic = syntheti cItalic; }
106 bool operator==(const FontPlatformData&) const; 107 bool operator==(const FontPlatformData&) const;
107 const FontPlatformData& operator=(const FontPlatformData&); 108 const FontPlatformData& operator=(const FontPlatformData&);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 int m_paintTextFlags; 167 int m_paintTextFlags;
167 bool m_useSubpixelPositioning; 168 bool m_useSubpixelPositioning;
168 unsigned m_minSizeForAntiAlias; 169 unsigned m_minSizeForAntiAlias;
169 float m_minSizeForSubpixel; 170 float m_minSizeForSubpixel;
170 #endif 171 #endif
171 }; 172 };
172 173
173 } // namespace blink 174 } // namespace blink
174 175
175 #endif // ifdef FontPlatformData_h 176 #endif // ifdef FontPlatformData_h
OLDNEW
« no previous file with comments | « Source/platform/fonts/FontFallbackList.cpp ('k') | Source/platform/fonts/FontPlatformData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698