| OLD | NEW |
| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 const char* preferredLocale, | 184 const char* preferredLocale, |
| 185 PlatformFallbackFont*); | 185 PlatformFallbackFont*); |
| 186 #endif | 186 #endif |
| 187 PassRefPtr<SimpleFontData> fontDataFromFontPlatformData( | 187 PassRefPtr<SimpleFontData> fontDataFromFontPlatformData( |
| 188 const FontPlatformData*, | 188 const FontPlatformData*, |
| 189 ShouldRetain = Retain, | 189 ShouldRetain = Retain, |
| 190 bool = false); | 190 bool = false); |
| 191 | 191 |
| 192 void invalidateShapeCache(); | 192 void invalidateShapeCache(); |
| 193 | 193 |
| 194 static void crashWithFontInfo(const FontDescription*); |
| 195 |
| 194 // Memory reporting | 196 // Memory reporting |
| 195 void dumpFontPlatformDataCache(base::trace_event::ProcessMemoryDump*); | 197 void dumpFontPlatformDataCache(base::trace_event::ProcessMemoryDump*); |
| 196 void dumpShapeResultCache(base::trace_event::ProcessMemoryDump*); | 198 void dumpShapeResultCache(base::trace_event::ProcessMemoryDump*); |
| 197 | 199 |
| 198 private: | 200 private: |
| 199 FontCache(); | 201 FontCache(); |
| 200 ~FontCache(); | 202 ~FontCache(); |
| 201 | 203 |
| 202 void purge(PurgeSeverity = PurgeIfNeeded); | 204 void purge(PurgeSeverity = PurgeIfNeeded); |
| 203 | 205 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 public: | 278 public: |
| 277 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 279 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
| 278 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 280 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
| 279 }; | 281 }; |
| 280 | 282 |
| 281 AtomicString toAtomicString(const SkString&); | 283 AtomicString toAtomicString(const SkString&); |
| 282 | 284 |
| 283 } // namespace blink | 285 } // namespace blink |
| 284 | 286 |
| 285 #endif | 287 #endif |
| OLD | NEW |