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

Unified Diff: cc/trees/layer_tree_host_unittest_scroll.cc

Issue 2080223010: cc: Clean up root_layer code in LTI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase++ Created 4 years, 6 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/trees/layer_tree_host_unittest_picture.cc ('k') | cc/trees/layer_tree_host_unittest_video.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_scroll.cc
diff --git a/cc/trees/layer_tree_host_unittest_scroll.cc b/cc/trees/layer_tree_host_unittest_scroll.cc
index 26f2fdbcc86ed8cde94e9f260265386ccc75f49b..fecc96cacc7f2206561e7e7af6ed491a26b5187b 100644
--- a/cc/trees/layer_tree_host_unittest_scroll.cc
+++ b/cc/trees/layer_tree_host_unittest_scroll.cc
@@ -110,7 +110,7 @@ class LayerTreeHostScrollTestScrollSimple : public LayerTreeHostScrollTest {
}
void DrawLayersOnThread(LayerTreeHostImpl* impl) override {
- LayerImpl* root = impl->active_tree()->root_layer();
+ LayerImpl* root = impl->active_tree()->root_layer_for_testing();
LayerImpl* scroll_layer = impl->OuterViewportScrollLayer();
EXPECT_VECTOR_EQ(gfx::Vector2d(), ScrollDelta(scroll_layer));
@@ -912,7 +912,7 @@ class LayerTreeHostScrollTestSimple : public LayerTreeHostScrollTest {
if (impl->pending_tree())
impl->SetNeedsRedraw();
- LayerImpl* root = impl->active_tree()->root_layer();
+ LayerImpl* root = impl->active_tree()->root_layer_for_testing();
LayerImpl* scroll_layer = impl->OuterViewportScrollLayer();
LayerImpl* pending_root =
impl->active_tree()->FindPendingTreeLayerById(root->id());
@@ -1031,7 +1031,7 @@ class LayerTreeHostScrollTestImplOnlyScroll : public LayerTreeHostScrollTest {
void BeginCommitOnThread(LayerTreeHostImpl* impl) override {
// Scroll after the 2nd commit has started.
if (impl->active_tree()->source_frame_number() == 0) {
- LayerImpl* active_root = impl->active_tree()->root_layer();
+ LayerImpl* active_root = impl->active_tree()->root_layer_for_testing();
LayerImpl* active_scroll_layer = impl->OuterViewportScrollLayer();
ASSERT_TRUE(active_root);
ASSERT_TRUE(active_scroll_layer);
@@ -1043,10 +1043,10 @@ class LayerTreeHostScrollTestImplOnlyScroll : public LayerTreeHostScrollTest {
void CommitCompleteOnThread(LayerTreeHostImpl* impl) override {
// We force a second draw here of the first commit before activating
// the second commit.
- LayerImpl* active_root = impl->active_tree()->root_layer();
+ LayerImpl* active_root = impl->active_tree()->root_layer_for_testing();
LayerImpl* active_scroll_layer =
active_root ? impl->OuterViewportScrollLayer() : NULL;
- LayerImpl* pending_root = impl->pending_tree()->root_layer();
+ LayerImpl* pending_root = impl->pending_tree()->root_layer_for_testing();
LayerImpl* pending_scroll_layer =
impl->pending_tree()->OuterViewportScrollLayer();
@@ -1627,7 +1627,7 @@ class LayerTreeHostScrollTestScrollMFBA : public LayerTreeHostScrollTest {
private:
void Scroll(LayerTreeHostImpl* impl) {
- LayerImpl* root = impl->active_tree()->root_layer();
+ LayerImpl* root = impl->active_tree()->root_layer_for_testing();
LayerImpl* scroll_layer = impl->OuterViewportScrollLayer();
scroll_layer->SetScrollClipLayer(outer_viewport_container_layer_id_);
« no previous file with comments | « cc/trees/layer_tree_host_unittest_picture.cc ('k') | cc/trees/layer_tree_host_unittest_video.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698