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

Unified Diff: cc/trees/layer_tree_host_unittest_copyrequest.cc

Issue 2661523003: cc: Merge LayerTree into the LayerTreeHost. (Closed)
Patch Set: auto Created 3 years, 11 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_context.cc ('k') | cc/trees/layer_tree_host_unittest_damage.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_copyrequest.cc
diff --git a/cc/trees/layer_tree_host_unittest_copyrequest.cc b/cc/trees/layer_tree_host_unittest_copyrequest.cc
index ae6ff24e92c2743328518d1c082a76451f7f53ee..cf8b1cd119a45e96a8dabff23c7679b3542212bf 100644
--- a/cc/trees/layer_tree_host_unittest_copyrequest.cc
+++ b/cc/trees/layer_tree_host_unittest_copyrequest.cc
@@ -43,7 +43,7 @@ class LayerTreeHostCopyRequestTestMultipleRequests
grand_child->SetBounds(gfx::Size(5, 5));
child->AddChild(grand_child);
- layer_tree()->SetRootLayer(root);
+ layer_tree_host()->SetRootLayer(root);
LayerTreeHostCopyRequestTest::SetupTree();
client_.set_bounds(root->bounds());
}
@@ -205,7 +205,7 @@ class LayerTreeHostCopyRequestCompletionCausesCommit
layer_->SetBounds(gfx::Size(15, 15));
root_->AddChild(layer_);
- layer_tree()->SetRootLayer(root_);
+ layer_tree_host()->SetRootLayer(root_);
LayerTreeHostCopyRequestTest::SetupTree();
client_.set_bounds(root_->bounds());
}
@@ -260,7 +260,7 @@ class LayerTreeHostCopyRequestTestLayerDestroyed
impl_destroyed_->SetBounds(gfx::Size(10, 10));
root_->AddChild(impl_destroyed_);
- layer_tree()->SetRootLayer(root_);
+ layer_tree_host()->SetRootLayer(root_);
LayerTreeHostCopyRequestTest::SetupTree();
client_.set_bounds(root_->bounds());
}
@@ -292,7 +292,7 @@ class LayerTreeHostCopyRequestTestLayerDestroyed
EXPECT_EQ(1, callback_count_);
// Prevent drawing so we can't make a copy of the impl_destroyed layer.
- layer_tree()->SetViewportSize(gfx::Size());
+ layer_tree_host()->SetViewportSize(gfx::Size());
break;
case 2:
// Flush the message loops and make sure the callbacks run.
@@ -359,7 +359,7 @@ class LayerTreeHostCopyRequestTestInHiddenSubtree
copy_layer_->SetBounds(gfx::Size(10, 10));
parent_layer_->AddChild(copy_layer_);
- layer_tree()->SetRootLayer(root_);
+ layer_tree_host()->SetRootLayer(root_);
LayerTreeHostCopyRequestTest::SetupTree();
client_.set_bounds(root_->bounds());
}
@@ -459,7 +459,7 @@ class LayerTreeHostTestHiddenSurfaceNotAllocatedForSubtreeCopyRequest
copy_layer_->SetBounds(gfx::Size(10, 10));
parent_layer_->AddChild(copy_layer_);
- layer_tree()->SetRootLayer(root_);
+ layer_tree_host()->SetRootLayer(root_);
LayerTreeHostCopyRequestTest::SetupTree();
client_.set_bounds(root_->bounds());
}
@@ -563,7 +563,7 @@ class LayerTreeHostCopyRequestTestClippedOut
copy_layer_->SetBounds(gfx::Size(10, 10));
parent_layer_->AddChild(copy_layer_);
- layer_tree()->SetRootLayer(root_);
+ layer_tree_host()->SetRootLayer(root_);
LayerTreeHostCopyRequestTest::SetupTree();
client_.set_bounds(root_->bounds());
}
@@ -613,7 +613,7 @@ class LayerTreeHostCopyRequestTestScaledLayer
child_layer_->SetBounds(gfx::Size(10, 10));
copy_layer_->AddChild(child_layer_);
- layer_tree()->SetRootLayer(root_);
+ layer_tree_host()->SetRootLayer(root_);
LayerTreeHostCopyRequestTest::SetupTree();
client_.set_bounds(root_->bounds());
}
@@ -657,7 +657,7 @@ class LayerTreeHostTestAsyncTwoReadbacksWithoutDraw
copy_layer_->SetBounds(gfx::Size(10, 10));
root_->AddChild(copy_layer_);
- layer_tree()->SetRootLayer(root_);
+ layer_tree_host()->SetRootLayer(root_);
LayerTreeHostCopyRequestTest::SetupTree();
client_.set_bounds(root_->bounds());
}
@@ -675,7 +675,7 @@ class LayerTreeHostTestAsyncTwoReadbacksWithoutDraw
PostSetNeedsCommitToMainThread();
// Prevent drawing.
- layer_tree()->SetViewportSize(gfx::Size(0, 0));
+ layer_tree_host()->SetViewportSize(gfx::Size(0, 0));
AddCopyRequest(copy_layer_.get());
}
@@ -690,7 +690,7 @@ class LayerTreeHostTestAsyncTwoReadbacksWithoutDraw
void DidCommit() override {
if (layer_tree_host()->SourceFrameNumber() == 1) {
// Allow drawing.
- layer_tree()->SetViewportSize(gfx::Size(root_->bounds()));
+ layer_tree_host()->SetViewportSize(gfx::Size(root_->bounds()));
AddCopyRequest(copy_layer_.get());
}
@@ -747,7 +747,7 @@ class LayerTreeHostCopyRequestTestDeleteTexture
copy_layer_->SetBounds(gfx::Size(10, 10));
root_->AddChild(copy_layer_);
- layer_tree()->SetRootLayer(root_);
+ layer_tree_host()->SetRootLayer(root_);
LayerTreeHostCopyRequestTest::SetupTree();
client_.set_bounds(root_->bounds());
}
@@ -881,7 +881,7 @@ class LayerTreeHostCopyRequestTestCountTextures
copy_layer_->SetForceRenderSurfaceForTesting(true);
root_->AddChild(copy_layer_);
- layer_tree()->SetRootLayer(root_);
+ layer_tree_host()->SetRootLayer(root_);
LayerTreeHostCopyRequestTest::SetupTree();
}
@@ -1042,7 +1042,7 @@ class LayerTreeHostCopyRequestTestDestroyBeforeCopy
copy_layer_->SetBounds(gfx::Size(10, 10));
root_->AddChild(copy_layer_);
- layer_tree()->SetRootLayer(root_);
+ layer_tree_host()->SetRootLayer(root_);
LayerTreeHostCopyRequestTest::SetupTree();
client_.set_bounds(root_->bounds());
}
@@ -1077,7 +1077,7 @@ class LayerTreeHostCopyRequestTestDestroyBeforeCopy
base::Unretained(this)));
copy_layer_->RequestCopyOfOutput(std::move(request));
- layer_tree()->SetViewportSize(gfx::Size());
+ layer_tree_host()->SetViewportSize(gfx::Size());
break;
}
case 2:
@@ -1088,7 +1088,8 @@ class LayerTreeHostCopyRequestTestDestroyBeforeCopy
case 3:
EXPECT_EQ(1, callback_count_);
// Allow us to draw now.
- layer_tree()->SetViewportSize(layer_tree()->root_layer()->bounds());
+ layer_tree_host()->SetViewportSize(
+ layer_tree_host()->root_layer()->bounds());
break;
case 4:
EXPECT_EQ(1, callback_count_);
@@ -1118,7 +1119,7 @@ class LayerTreeHostCopyRequestTestShutdownBeforeCopy
copy_layer_->SetBounds(gfx::Size(10, 10));
root_->AddChild(copy_layer_);
- layer_tree()->SetRootLayer(root_);
+ layer_tree_host()->SetRootLayer(root_);
LayerTreeHostCopyRequestTest::SetupTree();
client_.set_bounds(root_->bounds());
}
@@ -1153,7 +1154,7 @@ class LayerTreeHostCopyRequestTestShutdownBeforeCopy
base::Unretained(this)));
copy_layer_->RequestCopyOfOutput(std::move(request));
- layer_tree()->SetViewportSize(gfx::Size());
+ layer_tree_host()->SetViewportSize(gfx::Size());
break;
}
case 2:
@@ -1190,7 +1191,7 @@ class LayerTreeHostCopyRequestTestMultipleDrawsHiddenCopyRequest
root->AddChild(child_);
child_->SetHideLayerAndSubtree(true);
- layer_tree()->SetRootLayer(root);
+ layer_tree_host()->SetRootLayer(root);
LayerTreeHostCopyRequestTest::SetupTree();
client_.set_bounds(root->bounds());
}
« no previous file with comments | « cc/trees/layer_tree_host_unittest_context.cc ('k') | cc/trees/layer_tree_host_unittest_damage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698