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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 1421483005: Reland: Remove DCHECK_IMPLIES/CHECK_IMPLIES. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index 5af5fc1a2a361ef7036fdb93883dfb4fc77c59a9..e02cf8b248e7de1e596688b7801dbf5a26b189d4 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -415,8 +415,8 @@ void UpdateAccumulatedSurfaceState(
current_target->render_surface()->draw_transform();
// If we have unclipped descendants, the draw transform is a translation.
- DCHECK_IMPLIES(current_target->num_unclipped_descendants(),
- current_draw_transform.IsIdentityOrTranslation());
+ DCHECK(!current_target->num_unclipped_descendants() ||
+ current_draw_transform.IsIdentityOrTranslation());
target_rect =
MathUtil::MapEnclosingClippedRect(current_draw_transform, target_rect);
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698