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

Unified Diff: cc/tiles/picture_layer_tiling_set.cc

Issue 1213193003: Remove DCHECK_IMPLIES and CHECK_IMPLIES (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/tiles/picture_layer_tiling_set.cc
diff --git a/cc/tiles/picture_layer_tiling_set.cc b/cc/tiles/picture_layer_tiling_set.cc
index c820e81ce1aea539628cdcda220006a78f01bd7d..921a23af69d398617188d38dde2e0ac1ffcccd26 100644
--- a/cc/tiles/picture_layer_tiling_set.cc
+++ b/cc/tiles/picture_layer_tiling_set.cc
@@ -137,7 +137,7 @@ void PictureLayerTilingSet::UpdateTilingsToCurrentRasterSourceForCommit(
// Invalidate tiles and update them to the new raster source.
for (PictureLayerTiling* tiling : tilings_) {
- DCHECK_IMPLIES(tree_ == PENDING_TREE, !tiling->has_tiles());
+ DCHECK((tree_ != PENDING_TREE) || !tiling->has_tiles());
tiling->SetRasterSourceAndResize(raster_source);
// We can commit on either active or pending trees, but only active one can

Powered by Google App Engine
This is Rietveld 408576698