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

Unified Diff: cc/test/fake_layer_tree_host_impl.cc

Issue 2781483006: cc : Compute render surface is_clipped outside property tree building (Closed)
Patch Set: . Created 3 years, 9 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/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);

Powered by Google App Engine
This is Rietveld 408576698