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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontCache.cpp

Issue 2558453005: Allow calling FontCache::purge() at any timing (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/fonts/FontCache.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/FontCache.cpp b/third_party/WebKit/Source/platform/fonts/FontCache.cpp
index b863c7102127f79f2082b8638bb8d9daf0c1db73..0ac96452675abc570e699bc2bc2cb377830ec5c3 100644
--- a/third_party/WebKit/Source/platform/fonts/FontCache.cpp
+++ b/third_party/WebKit/Source/platform/fonts/FontCache.cpp
@@ -394,9 +394,9 @@ void FontCache::invalidateShapeCache() {
}
void FontCache::purge(PurgeSeverity PurgeSeverity) {
- // We should never be forcing the purge while the FontCachePurgePreventer is
- // in scope.
- ASSERT(!m_purgePreventCount || PurgeSeverity == PurgeIfNeeded);
+ // Ideally we should never be forcing the purge while the
+ // FontCachePurgePreventer is in scope, but we call purge() at any timing
+ // via MemoryCoordinator.
if (m_purgePreventCount)
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698