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

Unified Diff: cc/layers/layer_position_constraint_unittest.cc

Issue 2886243004: Refactor RegisterViewportLayers to use a struct instead of 6 values (Closed)
Patch Set: CC_EXPORT ViewportLayers to make the Windows compile+link happy. Created 3 years, 7 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 | « no previous file | cc/test/layer_tree_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_position_constraint_unittest.cc
diff --git a/cc/layers/layer_position_constraint_unittest.cc b/cc/layers/layer_position_constraint_unittest.cc
index 8b1989f5638fda6601960ef40d0a535a3d92d545..ff886dbe792324e17e17a9386c2aadbed0494acb 100644
--- a/cc/layers/layer_position_constraint_unittest.cc
+++ b/cc/layers/layer_position_constraint_unittest.cc
@@ -135,9 +135,13 @@ class LayerPositionConstraintTest : public testing::Test {
root_->AddChild(inner_viewport_container_layer_);
layer_tree_host_->SetRootLayer(root_);
- layer_tree_host_->RegisterViewportLayers(
- nullptr, root_, inner_viewport_container_layer_,
- outer_viewport_container_layer_, scroll_layer_, child_);
+ LayerTreeHost::ViewportLayers viewport_layers;
+ viewport_layers.page_scale = root_;
+ viewport_layers.inner_viewport_container = inner_viewport_container_layer_;
+ viewport_layers.outer_viewport_container = outer_viewport_container_layer_;
+ viewport_layers.inner_viewport_scroll = scroll_layer_;
+ viewport_layers.outer_viewport_scroll = child_;
+ layer_tree_host_->RegisterViewportLayers(viewport_layers);
}
void CommitAndUpdateImplPointers() {
« no previous file with comments | « no previous file | cc/test/layer_tree_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698