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

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: dcheck2: withoutandroidchange 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 3a82e23fe52f8658a8e85673de04a98455841821..574cb8a3dfcf7509d0e131bcfa9ac8efb8f51fd5 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_ON()
for (const auto& tile_map_pair : tiles_)
DCHECK(tile_map_pair.second->is_shared());
VerifyLiveTilesRect(false);
@@ -683,7 +683,7 @@ void PictureLayerTiling::SetLiveTilesRect(
}
void PictureLayerTiling::VerifyLiveTilesRect(bool is_on_recycle_tree) const {
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
for (auto it = tiles_.begin(); it != tiles_.end(); ++it) {
if (!it->second.get())
continue;

Powered by Google App Engine
This is Rietveld 408576698