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

Unified Diff: cc/test/fake_layer_tree_host_impl.cc

Issue 2334003003: cc : Compute visible rects dynamically (1) (Closed)
Patch Set: comment Created 4 years, 3 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
« no previous file with comments | « cc/test/fake_layer_tree_host_impl.h ('k') | cc/trees/damage_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c9a87819eb013865d6d2d073ea25267e1c719445..7db83d492a562d7c7d6d17ff73bc4f90d6033c13 100644
--- a/cc/test/fake_layer_tree_host_impl.cc
+++ b/cc/test/fake_layer_tree_host_impl.cc
@@ -100,16 +100,20 @@ int FakeLayerTreeHostImpl::RecursiveUpdateNumChildren(LayerImpl* layer) {
return num_children_that_draw_content + (layer->DrawsContent() ? 1 : 0);
}
-void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawPropertiesForActiveTree() {
- UpdateNumChildrenAndDrawProperties(active_tree());
+void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawPropertiesForActiveTree(
+ bool force_skip_verify_visible_rect_calculations) {
+ UpdateNumChildrenAndDrawProperties(
+ active_tree(), force_skip_verify_visible_rect_calculations);
}
void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawProperties(
- LayerTreeImpl* layerTree) {
+ LayerTreeImpl* layerTree,
+ bool force_skip_verify_visible_rect_calculations) {
RecursiveUpdateNumChildren(layerTree->root_layer_for_testing());
bool update_lcd_text = false;
layerTree->BuildLayerListAndPropertyTreesForTesting();
- layerTree->UpdateDrawProperties(update_lcd_text);
+ layerTree->UpdateDrawProperties(update_lcd_text,
+ force_skip_verify_visible_rect_calculations);
}
} // namespace cc
« no previous file with comments | « cc/test/fake_layer_tree_host_impl.h ('k') | cc/trees/damage_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698