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

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

Issue 2178883002: Added purge method to SimpleFontData and PlatformFontData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 #endif 137 #endif
138 138
139 void purgeMemory();
140
139 private: 141 private:
140 #if OS(WIN) 142 #if OS(WIN)
141 void querySystemForRenderStyle(); 143 void querySystemForRenderStyle();
142 #endif 144 #endif
143 145
144 RefPtr<SkTypeface> m_typeface; 146 RefPtr<SkTypeface> m_typeface;
145 #if !OS(WIN) 147 #if !OS(WIN)
146 CString m_family; 148 CString m_family;
147 #endif 149 #endif
148 150
(...skipping 12 matching lines...) Expand all
161 #if OS(WIN) 163 #if OS(WIN)
162 int m_paintTextFlags; 164 int m_paintTextFlags;
163 unsigned m_minSizeForAntiAlias; 165 unsigned m_minSizeForAntiAlias;
164 float m_minSizeForSubpixel; 166 float m_minSizeForSubpixel;
165 #endif 167 #endif
166 }; 168 };
167 169
168 } // namespace blink 170 } // namespace blink
169 171
170 #endif // ifdef FontPlatformData_h 172 #endif // ifdef FontPlatformData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698