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

Side by Side Diff: sky/engine/platform/fonts/FontCache.h

Issue 709603006: Remove a bunch of OS(MACOSX) code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Even more Created 6 years, 1 month 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 // Implemented on skia platforms. 130 // Implemented on skia platforms.
131 PassRefPtr<SkTypeface> createTypeface(const FontDescription&, const FontFace CreationParams&, CString& name); 131 PassRefPtr<SkTypeface> createTypeface(const FontDescription&, const FontFace CreationParams&, CString& name);
132 132
133 PassRefPtr<SimpleFontData> fontDataFromFontPlatformData(const FontPlatformDa ta*, ShouldRetain = Retain); 133 PassRefPtr<SimpleFontData> fontDataFromFontPlatformData(const FontPlatformDa ta*, ShouldRetain = Retain);
134 PassRefPtr<SimpleFontData> fallbackOnStandardFontStyle(const FontDescription &, UChar32); 134 PassRefPtr<SimpleFontData> fallbackOnStandardFontStyle(const FontDescription &, UChar32);
135 135
136 // Don't purge if this count is > 0; 136 // Don't purge if this count is > 0;
137 int m_purgePreventCount; 137 int m_purgePreventCount;
138 138
139 #if OS(MACOSX) || OS(ANDROID) 139 #if OS(ANDROID)
140 friend class ComplexTextController; 140 friend class ComplexTextController;
141 #endif 141 #endif
142 friend class SimpleFontData; // For fontDataFromFontPlatformData 142 friend class SimpleFontData; // For fontDataFromFontPlatformData
143 friend class FontFallbackList; 143 friend class FontFallbackList;
144 }; 144 };
145 145
146 class PLATFORM_EXPORT FontCachePurgePreventer { 146 class PLATFORM_EXPORT FontCachePurgePreventer {
147 public: 147 public:
148 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } 148 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); }
149 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } 149 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); }
150 }; 150 };
151 151
152 } // namespace blink 152 } // namespace blink
153 153
154 #endif 154 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698