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 18fcd7b2d3193d8298141792a65d4ae0a04f834b..d9b6e4410fc22de0e7f35adbeaf080b644efa786 100644 |
--- a/cc/trees/layer_tree_host_common.cc |
+++ b/cc/trees/layer_tree_host_common.cc |
@@ -2440,6 +2440,20 @@ static bool ApproximatelyEqual(const gfx::Transform& a, |
return true; |
} |
+void VerifyPropertyTreeValuesForSurfaces(RenderSurfaceImpl* render_surface, |
ajuma
2015/07/23 15:57:03
Nit: s/Surfaces/Surface
jaydasika
2015/07/23 16:56:26
Done.
|
+ PropertyTrees* property_trees) { |
+ const bool render_surface_draw_transforms_match = |
+ ApproximatelyEqual(render_surface->draw_transform(), |
+ DrawTransformOfRenderSurfaceFromPropertyTrees( |
+ render_surface, property_trees->transform_tree)); |
+ CHECK(render_surface_draw_transforms_match) |
+ << "expected: " << render_surface->draw_transform().ToString() |
+ << " actual: " |
+ << DrawTransformOfRenderSurfaceFromPropertyTrees( |
+ render_surface, property_trees->transform_tree) |
+ .ToString(); |
+} |
+ |
void VerifyPropertyTreeValuesForLayer(LayerImpl* current_layer, |
PropertyTrees* property_trees, |
bool layers_always_allowed_lcd_text, |
@@ -2488,6 +2502,9 @@ void VerifyPropertyTreeValues( |
end = LayerIterator::End(inputs->render_surface_layer_list); |
it != end; ++it) { |
LayerImpl* current_layer = *it; |
+ if (current_layer->parent() && current_layer->render_surface()) |
ajuma
2015/07/23 15:57:03
I think you can instead just check if (it.represen
jaydasika
2015/07/23 16:56:26
Done.
|
+ VerifyPropertyTreeValuesForSurfaces(current_layer->render_surface(), |
+ inputs->property_trees); |
if (!it.represents_itself() || !current_layer->DrawsContent()) |
continue; |
VerifyPropertyTreeValuesForLayer(current_layer, inputs->property_trees, |