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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/FontCache.h

Issue 2707763003: Capture font-related data in minidump when last resort font failed (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/FontCache.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/FontCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698