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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 1231453002: Compute if a layer is clipped outside CalcDrawProps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment on Patch 1 Created 5 years, 5 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/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 ffd16907d1b446d9a4e81d232ef2185f8d13b9ef..3924fdea6078c0a7a54815d87a097c44cda338bf 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -2506,6 +2506,9 @@ void VerifyPropertyTreeValuesForLayer(LayerImpl* current_layer,
current_layer, layers_always_allowed_lcd_text, can_use_lcd_text,
property_trees) == current_layer->can_use_lcd_text();
CHECK(can_use_lcd_text_match);
+
+ CHECK_EQ(current_layer->is_clipped(),
+ current_layer->draw_properties().is_clipped_from_property_trees);
}
void VerifyPropertyTreeValues(

Powered by Google App Engine
This is Rietveld 408576698