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

Unified Diff: skia/ext/SkFontHost_fontconfig.cpp

Issue 9347043: Remove SkFontHost::ValidFontID. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/SkFontHost_fontconfig.cpp
===================================================================
--- skia/ext/SkFontHost_fontconfig.cpp (revision 122064)
+++ skia/ext/SkFontHost_fontconfig.cpp (working copy)
@@ -208,19 +208,6 @@
return NULL;
}
-// static
-bool SkFontHost::ValidFontID(SkFontID uniqueID) {
- if (IsRemoteFont(UniqueIdToFileFaceId(uniqueID))) {
- // remote font
- SkAutoMutexAcquire ac(global_remote_font_map_lock);
- return global_remote_fonts.find(uniqueID) != global_remote_fonts.end();
- } else {
- // local font
- SkAutoMutexAcquire ac(global_fc_map_lock);
- return global_fc_typefaces.find(uniqueID) != global_fc_typefaces.end();
- }
-}
-
void SkFontHost::Serialize(const SkTypeface*, SkWStream*) {
SkASSERT(!"SkFontHost::Serialize unimplemented");
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698