| Index: cc/test/fake_layer_tree_host_impl.cc
|
| diff --git a/cc/test/fake_layer_tree_host_impl.cc b/cc/test/fake_layer_tree_host_impl.cc
|
| index 46f5e815a7f449bef6787b5edfa73a3c7135a644..a98ebd30f35e778eaf96b03a4c8136e150ab2a0a 100644
|
| --- a/cc/test/fake_layer_tree_host_impl.cc
|
| +++ b/cc/test/fake_layer_tree_host_impl.cc
|
| @@ -80,24 +80,12 @@ void FakeLayerTreeHostImpl::AdvanceToNextFrame(base::TimeDelta advance_by) {
|
| WillBeginImplFrame(next_begin_frame_args);
|
| }
|
|
|
| -int FakeLayerTreeHostImpl::RecursiveUpdateNumChildren(LayerImpl* layer) {
|
| - int num_children_that_draw_content = 0;
|
| - for (size_t i = 0; i < layer->test_properties()->children.size(); ++i) {
|
| - num_children_that_draw_content +=
|
| - RecursiveUpdateNumChildren(layer->test_properties()->children[i]);
|
| - }
|
| - layer->test_properties()->num_descendants_that_draw_content =
|
| - num_children_that_draw_content;
|
| - return num_children_that_draw_content + (layer->DrawsContent() ? 1 : 0);
|
| -}
|
| -
|
| void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawPropertiesForActiveTree() {
|
| UpdateNumChildrenAndDrawProperties(active_tree());
|
| }
|
|
|
| void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawProperties(
|
| LayerTreeImpl* layerTree) {
|
| - RecursiveUpdateNumChildren(layerTree->root_layer_for_testing());
|
| bool update_lcd_text = false;
|
| layerTree->BuildLayerListAndPropertyTreesForTesting();
|
| layerTree->UpdateDrawProperties(update_lcd_text);
|
|
|