summaryrefslogtreecommitdiff
path: root/chromium/cc/layers/layer_position_constraint_unittest.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-01-04 14:17:57 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-01-05 10:05:06 +0000
commit39d357e3248f80abea0159765ff39554affb40db (patch)
treeaba0e6bfb76de0244bba0f5fdbd64b830dd6e621 /chromium/cc/layers/layer_position_constraint_unittest.cc
parent87778abf5a1f89266f37d1321b92a21851d8244d (diff)
downloadqtwebengine-chromium-39d357e3248f80abea0159765ff39554affb40db.tar.gz
BASELINE: Update Chromium to 55.0.2883.105
And updates ninja to 1.7.2 Change-Id: I20d43c737f82764d857ada9a55586901b18b9243 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/cc/layers/layer_position_constraint_unittest.cc')
-rw-r--r--chromium/cc/layers/layer_position_constraint_unittest.cc16
1 files changed, 7 insertions, 9 deletions
diff --git a/chromium/cc/layers/layer_position_constraint_unittest.cc b/chromium/cc/layers/layer_position_constraint_unittest.cc
index 2ce51c9cca0..842d20b6549 100644
--- a/chromium/cc/layers/layer_position_constraint_unittest.cc
+++ b/chromium/cc/layers/layer_position_constraint_unittest.cc
@@ -61,8 +61,7 @@ void ExecuteCalculateDrawProperties(LayerImpl* root_layer) {
class LayerPositionConstraintTest : public testing::Test {
public:
LayerPositionConstraintTest()
- : fake_client_(FakeLayerTreeHostClient::DIRECT_3D),
- layer_tree_host_(
+ : layer_tree_host_(
FakeLayerTreeHost::Create(&fake_client_, &task_graph_runner_)),
root_impl_(nullptr),
inner_viewport_container_layer_impl_(nullptr),
@@ -74,7 +73,7 @@ class LayerPositionConstraintTest : public testing::Test {
great_grand_child_impl_(nullptr) {
layer_tree_host_->InitializeForTesting(
TaskRunnerProvider::Create(nullptr, nullptr),
- std::unique_ptr<Proxy>(new FakeProxy), nullptr);
+ std::unique_ptr<Proxy>(new FakeProxy));
CreateTreeForTest();
fixed_to_top_left_.set_is_fixed_position(true);
fixed_to_bottom_right_.set_is_fixed_position(true);
@@ -133,17 +132,17 @@ class LayerPositionConstraintTest : public testing::Test {
root_->AddChild(inner_viewport_container_layer_);
layer_tree_host_->SetRootLayer(root_);
- layer_tree_host_->RegisterViewportLayers(nullptr, root_, scroll_layer_,
- child_);
+ layer_tree_host_->GetLayerTree()->RegisterViewportLayers(
+ nullptr, root_, scroll_layer_, child_);
}
void CommitAndUpdateImplPointers() {
LayerTreeHostCommon::CalcDrawPropsMainInputsForTesting inputs(
root_.get(), root_->bounds());
inputs.inner_viewport_scroll_layer =
- layer_tree_host_->inner_viewport_scroll_layer();
+ layer_tree_host_->GetLayerTree()->inner_viewport_scroll_layer();
inputs.outer_viewport_scroll_layer =
- layer_tree_host_->outer_viewport_scroll_layer();
+ layer_tree_host_->GetLayerTree()->outer_viewport_scroll_layer();
LayerTreeHostCommon::CalculateDrawPropertiesForTesting(&inputs);
// Since scroll deltas aren't sent back to the main thread in this test
@@ -201,8 +200,7 @@ class LayerPositionConstraintTest : public testing::Test {
->property_trees()
->scroll_tree.SetScrollOffsetDeltaForTesting(layer_impl->id(),
delta))
- layer_impl->layer_tree_impl()->DidUpdateScrollOffset(
- layer_impl->id(), layer_impl->transform_tree_index());
+ layer_impl->layer_tree_impl()->DidUpdateScrollOffset(layer_impl->id());
}
};