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

Unified Diff: cc/resources/prioritized_resource_manager.cc

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/prioritized_resource.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/prioritized_resource_manager.cc
diff --git a/cc/resources/prioritized_resource_manager.cc b/cc/resources/prioritized_resource_manager.cc
index 657c14f4ddffb9bae1faeb94cb0942cc65941f16..459844684912d0afb417667a83fb5d8cf4591c92 100644
--- a/cc/resources/prioritized_resource_manager.cc
+++ b/cc/resources/prioritized_resource_manager.cc
@@ -481,7 +481,7 @@ void PrioritizedResourceManager::EvictFirstBackingResource(
}
void PrioritizedResourceManager::AssertInvariants() {
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
DCHECK(proxy_->IsImplThread() && proxy_->IsMainThreadBlocked());
// If we hit any of these asserts, there is a bug in this class. To see
@@ -540,7 +540,7 @@ void PrioritizedResourceManager::AssertInvariants() {
DCHECK(backing->CanBeRecycledIfNotInExternalUse());
previous_backing = backing;
}
-#endif // DCHECK_IS_ON
+#endif // DCHECK_IS_ON()
}
const Proxy* PrioritizedResourceManager::ProxyForDebug() const {
« no previous file with comments | « cc/resources/prioritized_resource.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698