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

Unified Diff: cc/resources/picture_layer_tiling.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
Index: cc/resources/picture_layer_tiling.cc
diff --git a/cc/resources/picture_layer_tiling.cc b/cc/resources/picture_layer_tiling.cc
index 2e5b45729f8f4860687f3a13361e1fccffb7b869..8f1ad8630c2dfc53d4f3ef043e10f4536b8f2b3d 100644
--- a/cc/resources/picture_layer_tiling.cc
+++ b/cc/resources/picture_layer_tiling.cc
@@ -195,7 +195,7 @@ void PictureLayerTiling::CloneTilesAndPropertiesFrom(
}
DCHECK_EQ(twin_tiling.tiles_.size(), tiles_.size());
-#if DCHECK_IS_ON
+#if !DCHECK_IS_OFF
for (const auto& tile_map_pair : tiles_)
DCHECK(tile_map_pair.second->is_shared());
VerifyLiveTilesRect(false);
@@ -694,7 +694,7 @@ void PictureLayerTiling::SetLiveTilesRect(
}
void PictureLayerTiling::VerifyLiveTilesRect(bool is_on_recycle_tree) const {
-#if DCHECK_IS_ON
+#if !DCHECK_IS_OFF
for (auto it = tiles_.begin(); it != tiles_.end(); ++it) {
if (!it->second.get())
continue;

Powered by Google App Engine
This is Rietveld 408576698