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

Unified Diff: cc/trees/layer_tree_host_unittest_context.cc

Issue 2183403002: cc: Move data to LayerTree from LayerTreeHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@layer_tree_change
Patch Set: remove unused test file. Created 4 years, 4 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
Index: cc/trees/layer_tree_host_unittest_context.cc
diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc
index d701b82b79620f1acea33e1fb4940e5f53d84782..e5e5504a8399842a8fd279cb07f9fbf6b4e6e1c7 100644
--- a/cc/trees/layer_tree_host_unittest_context.cc
+++ b/cc/trees/layer_tree_host_unittest_context.cc
@@ -230,7 +230,7 @@ class LayerTreeHostContextTestLostContextSucceeds
virtual void InvalidateAndSetNeedsCommit() {
// Cause damage so we try to draw.
- layer_tree_host()->root_layer()->SetNeedsDisplay();
+ layer_tree()->root_layer()->SetNeedsDisplay();
layer_tree_host()->SetNeedsCommit();
}
@@ -634,7 +634,7 @@ class LayerTreeHostContextTestLostContextSucceedsWithContent
root_->AddChild(layer_);
- layer_tree_host()->SetRootLayer(root_);
+ layer_tree()->SetRootLayer(root_);
LayerTreeHostContextTest::SetupTree();
client_.set_bounds(root_->bounds());
}
@@ -711,7 +711,7 @@ class LayerTreeHostContextTestLostContextAndEvictTextures
FakePictureLayer::Create(&client_);
picture_layer->SetBounds(gfx::Size(10, 20));
client_.set_bounds(picture_layer->bounds());
- layer_tree_host()->SetRootLayer(picture_layer);
+ layer_tree()->SetRootLayer(picture_layer);
LayerTreeHostContextTest::SetupTree();
}
@@ -819,7 +819,7 @@ class LayerTreeHostContextTestLayersNotified : public LayerTreeHostContextTest {
root_->AddChild(child_);
child_->AddChild(grandchild_);
- layer_tree_host()->SetRootLayer(root_);
+ layer_tree()->SetRootLayer(root_);
LayerTreeHostContextTest::SetupTree();
client_.set_bounds(root_->bounds());
}
@@ -1013,7 +1013,7 @@ class LayerTreeHostContextTestDontUseLostResources
scrollbar->SetIsDrawable(true);
root->AddChild(scrollbar);
- layer_tree_host()->SetRootLayer(root);
+ layer_tree()->SetRootLayer(root);
LayerTreeHostContextTest::SetupTree();
}
@@ -1053,10 +1053,10 @@ class LayerTreeHostContextTestDontUseLostResources
}
void DidCommitAndDrawFrame() override {
- ASSERT_TRUE(layer_tree_host()->hud_layer());
+ ASSERT_TRUE(layer_tree()->hud_layer());
// End the test once we know the 3nd frame drew.
if (layer_tree_host()->source_frame_number() < 5) {
- layer_tree_host()->root_layer()->SetNeedsDisplay();
+ layer_tree()->root_layer()->SetNeedsDisplay();
layer_tree_host()->SetNeedsCommit();
} else {
EndTest();
@@ -1099,7 +1099,7 @@ class LayerTreeHostContextTestImplSidePainting
picture->SetIsDrawable(true);
root->AddChild(picture);
- layer_tree_host()->SetRootLayer(root);
+ layer_tree()->SetRootLayer(root);
LayerTreeHostContextTest::SetupTree();
}
@@ -1127,8 +1127,8 @@ class ScrollbarLayerLostContext : public LayerTreeHostContextTest {
scrollbar_layer_ =
FakePaintedScrollbarLayer::Create(false, true, scroll_layer->id());
scrollbar_layer_->SetBounds(gfx::Size(10, 100));
- layer_tree_host()->root_layer()->AddChild(scrollbar_layer_);
- layer_tree_host()->root_layer()->AddChild(scroll_layer);
+ layer_tree()->root_layer()->AddChild(scrollbar_layer_);
+ layer_tree()->root_layer()->AddChild(scroll_layer);
PostSetNeedsCommitToMainThread();
}

Powered by Google App Engine
This is Rietveld 408576698