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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/FontPlatformData.h

Issue 1944993003: Move most of FontRenderStyle manipulation code into its own file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more typo fix Created 4 years, 7 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
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 PassRefPtr<SharedBuffer> openTypeTable(SkFontTableTag) const; 127 PassRefPtr<SharedBuffer> openTypeTable(SkFontTableTag) const;
128 128
129 #if OS(LINUX) || OS(ANDROID) 129 #if OS(LINUX) || OS(ANDROID)
130 // The returned styles are all actual styles without FontRenderStyle::NoPref erence. 130 // The returned styles are all actual styles without FontRenderStyle::NoPref erence.
131 const FontRenderStyle& getFontRenderStyle() const { return m_style; } 131 const FontRenderStyle& getFontRenderStyle() const { return m_style; }
132 #endif 132 #endif
133 void setupPaint(SkPaint*, float deviceScaleFactor = 1, const Font* = 0) cons t; 133 void setupPaint(SkPaint*, float deviceScaleFactor = 1, const Font* = 0) cons t;
134 134
135 #if OS(WIN) 135 #if OS(WIN)
136 int paintTextFlags() const { return m_paintTextFlags; } 136 int paintTextFlags() const { return m_paintTextFlags; }
137 #else
138 static void setHinting(SkPaint::Hinting);
139 static void setAutoHint(bool);
140 static void setUseBitmaps(bool);
141 static void setAntiAlias(bool);
142 static void setSubpixelRendering(bool);
143 #endif 137 #endif
144 138
145 private: 139 private:
146 #if !OS(MACOSX) 140 #if OS(WIN)
147 void querySystemForRenderStyle(); 141 void querySystemForRenderStyle();
148 #endif 142 #endif
149 143
150 RefPtr<SkTypeface> m_typeface; 144 RefPtr<SkTypeface> m_typeface;
151 #if !OS(WIN) 145 #if !OS(WIN)
152 CString m_family; 146 CString m_family;
153 #endif 147 #endif
154 148
155 public: 149 public:
156 float m_textSize; 150 float m_textSize;
(...skipping 10 matching lines...) Expand all
167 #if OS(WIN) 161 #if OS(WIN)
168 int m_paintTextFlags; 162 int m_paintTextFlags;
169 unsigned m_minSizeForAntiAlias; 163 unsigned m_minSizeForAntiAlias;
170 float m_minSizeForSubpixel; 164 float m_minSizeForSubpixel;
171 #endif 165 #endif
172 }; 166 };
173 167
174 } // namespace blink 168 } // namespace blink
175 169
176 #endif // ifdef FontPlatformData_h 170 #endif // ifdef FontPlatformData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698