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

Side by Side Diff: cc/layers/layer_position_constraint_unittest.cc

Issue 1520623003: cc:: Change plumbing for external_begin_frame_source to the Scheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing include. Created 5 years 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 unified diff | Download patch
« no previous file with comments | « cc/debug/micro_benchmark_controller_unittest.cc ('k') | cc/test/fake_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/layer_position_constraint.h" 5 #include "cc/layers/layer_position_constraint.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "cc/layers/layer.h" 9 #include "cc/layers/layer.h"
10 #include "cc/layers/layer_impl.h" 10 #include "cc/layers/layer_impl.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 root_impl_(nullptr), 70 root_impl_(nullptr),
71 inner_viewport_container_layer_impl_(nullptr), 71 inner_viewport_container_layer_impl_(nullptr),
72 scroll_layer_impl_(nullptr), 72 scroll_layer_impl_(nullptr),
73 outer_viewport_container_layer_impl_(nullptr), 73 outer_viewport_container_layer_impl_(nullptr),
74 child_transform_layer_impl_(nullptr), 74 child_transform_layer_impl_(nullptr),
75 child_impl_(nullptr), 75 child_impl_(nullptr),
76 grand_child_impl_(nullptr), 76 grand_child_impl_(nullptr),
77 great_grand_child_impl_(nullptr) { 77 great_grand_child_impl_(nullptr) {
78 layer_tree_host_->InitializeForTesting( 78 layer_tree_host_->InitializeForTesting(
79 TaskRunnerProvider::Create(nullptr, nullptr), 79 TaskRunnerProvider::Create(nullptr, nullptr),
80 scoped_ptr<Proxy>(new FakeProxy)); 80 scoped_ptr<Proxy>(new FakeProxy), nullptr);
81 CreateTreeForTest(); 81 CreateTreeForTest();
82 fixed_to_top_left_.set_is_fixed_position(true); 82 fixed_to_top_left_.set_is_fixed_position(true);
83 fixed_to_bottom_right_.set_is_fixed_position(true); 83 fixed_to_bottom_right_.set_is_fixed_position(true);
84 fixed_to_bottom_right_.set_is_fixed_to_right_edge(true); 84 fixed_to_bottom_right_.set_is_fixed_to_right_edge(true);
85 fixed_to_bottom_right_.set_is_fixed_to_bottom_edge(true); 85 fixed_to_bottom_right_.set_is_fixed_to_bottom_edge(true);
86 } 86 }
87 87
88 void CreateTreeForTest() { 88 void CreateTreeForTest() {
89 // scroll_layer_ is the inner viewport scroll layer and child_ is the outer 89 // scroll_layer_ is the inner viewport scroll layer and child_ is the outer
90 // viewport scroll layer. 90 // viewport scroll layer.
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 VerifySerializeAndDeserializeProto(true, false, true); 1155 VerifySerializeAndDeserializeProto(true, false, true);
1156 VerifySerializeAndDeserializeProto(true, false, false); 1156 VerifySerializeAndDeserializeProto(true, false, false);
1157 VerifySerializeAndDeserializeProto(false, true, true); 1157 VerifySerializeAndDeserializeProto(false, true, true);
1158 VerifySerializeAndDeserializeProto(false, true, false); 1158 VerifySerializeAndDeserializeProto(false, true, false);
1159 VerifySerializeAndDeserializeProto(false, false, true); 1159 VerifySerializeAndDeserializeProto(false, false, true);
1160 VerifySerializeAndDeserializeProto(false, false, false); 1160 VerifySerializeAndDeserializeProto(false, false, false);
1161 } 1161 }
1162 1162
1163 } // namespace 1163 } // namespace
1164 } // namespace cc 1164 } // namespace cc
OLDNEW
« no previous file with comments | « cc/debug/micro_benchmark_controller_unittest.cc ('k') | cc/test/fake_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698