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

Unified Diff: android_webview/browser/hardware_renderer.cc

Issue 842523002: base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 | « no previous file | base/i18n/build_utf8_validator_tables.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/hardware_renderer.cc
diff --git a/android_webview/browser/hardware_renderer.cc b/android_webview/browser/hardware_renderer.cc
index 1449541c51fb2614c7e9eba60cd124bbcf25a53d..bded8b91fb3ad156bad0ad2df67f9e9476785956 100644
--- a/android_webview/browser/hardware_renderer.cc
+++ b/android_webview/browser/hardware_renderer.cc
@@ -117,13 +117,13 @@ HardwareRenderer::~HardwareRenderer() {
root_layer_ = NULL;
delegated_layer_ = NULL;
frame_provider_ = NULL;
-#if DCHECK_IS_ON
Nico 2015/01/06 23:46:15 Can we make DCHECK_IS_ON a function-style macro? `
danakj 2015/01/06 23:55:10 Oh that's a good point. I thought no, because we u
+#if !DCHECK_IS_OFF
// Check collection is empty.
cc::ReturnedResourceArray returned_resources;
resource_collection_->TakeUnusedResourcesForChildCompositor(
&returned_resources);
DCHECK_EQ(0u, returned_resources.size());
-#endif // DCHECK_IS_ON
+#endif // !DCHECK_IS_OFF
resource_collection_->SetClient(NULL);
« no previous file with comments | « no previous file | base/i18n/build_utf8_validator_tables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698