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 70c5037221d1979579ac149f2fe0190b205834a9..8d70a21051e835dbe3355d056d165ad1dbfc3408 100644 |
--- a/cc/trees/layer_tree_host_common.cc |
+++ b/cc/trees/layer_tree_host_common.cc |
@@ -1211,6 +1211,7 @@ static void PreCalculateMetaInformation( |
PreCalculateMetaInformationRecursiveData* recursive_data) { |
layer->draw_properties().sorted_for_recursion = false; |
layer->draw_properties().has_child_with_a_scroll_parent = false; |
+ layer->draw_properties().visited = false; |
if (!HasInvertibleOrAnimatedTransform(layer)) { |
// Layers with singular transforms should not be drawn, the whole subtree |
@@ -1578,6 +1579,9 @@ static void CalculateDrawPropertiesInternal( |
DCHECK(globals.page_scale_application_layer || |
(globals.page_scale_factor == 1.f)); |
+ CHECK(!layer->draw_properties().visited); |
+ layer->draw_properties().visited = true; |
+ |
DataForRecursion<LayerType> data_for_children; |
typename LayerType::RenderSurfaceType* |
nearest_occlusion_immune_ancestor_surface = |