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

Side by Side Diff: Source/core/platform/graphics/FontCache.h

Issue 14107015: Rename OS(DARWIN) to OS(MACOSX). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 3 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, 2008 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2007-2008 Torch Mobile, Inc. 3 * Copyright (C) 2007-2008 Torch Mobile, Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 PassRefPtr<SimpleFontData> getFontResourceData(const FontPlatformData*, Shou ldRetain = Retain); 140 PassRefPtr<SimpleFontData> getFontResourceData(const FontPlatformData*, Shou ldRetain = Retain);
141 const FontPlatformData* getFallbackFontData(const FontDescription&); 141 const FontPlatformData* getFallbackFontData(const FontDescription&);
142 142
143 // Don't purge if this count is > 0; 143 // Don't purge if this count is > 0;
144 int m_purgePreventCount; 144 int m_purgePreventCount;
145 145
146 #if OS(WINDOWS) && !ENABLE(GDI_FONTS_ON_WINDOWS) 146 #if OS(WINDOWS) && !ENABLE(GDI_FONTS_ON_WINDOWS)
147 OwnPtr<SkFontMgr> m_fontManager; 147 OwnPtr<SkFontMgr> m_fontManager;
148 #endif 148 #endif
149 149
150 #if OS(DARWIN) || OS(ANDROID) 150 #if OS(MACOSX) || OS(ANDROID)
151 friend class ComplexTextController; 151 friend class ComplexTextController;
152 #endif 152 #endif
153 friend class SimpleFontData; // For getFontResourceData(const FontPlatformDa ta*) 153 friend class SimpleFontData; // For getFontResourceData(const FontPlatformDa ta*)
154 friend class FontFallbackList; 154 friend class FontFallbackList;
155 }; 155 };
156 156
157 // Get the global fontCache. 157 // Get the global fontCache.
158 FontCache* fontCache(); 158 FontCache* fontCache();
159 159
160 class FontCachePurgePreventer { 160 class FontCachePurgePreventer {
161 public: 161 public:
162 FontCachePurgePreventer() { fontCache()->disablePurging(); } 162 FontCachePurgePreventer() { fontCache()->disablePurging(); }
163 ~FontCachePurgePreventer() { fontCache()->enablePurging(); } 163 ~FontCachePurgePreventer() { fontCache()->enablePurging(); }
164 }; 164 };
165 165
166 } 166 }
167 167
168 #endif 168 #endif
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/Font.cpp ('k') | Source/core/platform/graphics/FontCustomPlatformData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698