| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 int ttcIndex; | 168 int ttcIndex; |
| 169 bool isBold; | 169 bool isBold; |
| 170 bool isItalic; | 170 bool isItalic; |
| 171 }; | 171 }; |
| 172 static void getFontForCharacter(UChar32, | 172 static void getFontForCharacter(UChar32, |
| 173 const char* preferredLocale, | 173 const char* preferredLocale, |
| 174 PlatformFallbackFont*); | 174 PlatformFallbackFont*); |
| 175 #endif | 175 #endif |
| 176 PassRefPtr<SimpleFontData> fontDataFromFontPlatformData( | 176 PassRefPtr<SimpleFontData> fontDataFromFontPlatformData( |
| 177 const FontPlatformData*, | 177 const FontPlatformData*, |
| 178 ShouldRetain = Retain); | 178 ShouldRetain = Retain, |
| 179 bool = false); |
| 179 | 180 |
| 180 void invalidateShapeCache(); | 181 void invalidateShapeCache(); |
| 181 | 182 |
| 182 // Memory reporting | 183 // Memory reporting |
| 183 void dumpFontPlatformDataCache(base::trace_event::ProcessMemoryDump*); | 184 void dumpFontPlatformDataCache(base::trace_event::ProcessMemoryDump*); |
| 184 void dumpShapeResultCache(base::trace_event::ProcessMemoryDump*); | 185 void dumpShapeResultCache(base::trace_event::ProcessMemoryDump*); |
| 185 | 186 |
| 186 private: | 187 private: |
| 187 FontCache(); | 188 FontCache(); |
| 188 ~FontCache(); | 189 ~FontCache(); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); | 259 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); |
| 259 | 260 |
| 260 public: | 261 public: |
| 261 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 262 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
| 262 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 263 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
| 263 }; | 264 }; |
| 264 | 265 |
| 265 } // namespace blink | 266 } // namespace blink |
| 266 | 267 |
| 267 #endif | 268 #endif |
| OLD | NEW |