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

Unified Diff: cc/trees/layer_tree_host_unittest_damage.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_damage.cc
diff --git a/cc/trees/layer_tree_host_unittest_damage.cc b/cc/trees/layer_tree_host_unittest_damage.cc
index d8bde904890b3e05be745e62a2754f57c684d614..825d03d12e7f6333df628006d0b5e4c8e41c4340 100644
--- a/cc/trees/layer_tree_host_unittest_damage.cc
+++ b/cc/trees/layer_tree_host_unittest_damage.cc
@@ -30,7 +30,7 @@ class LayerTreeHostDamageTestSetNeedsRedraw
scoped_refptr<FakePictureLayer> root = FakePictureLayer::Create(&client_);
root->SetBounds(gfx::Size(10, 10));
- layer_tree_host()->SetRootLayer(root);
+ layer_tree()->SetRootLayer(root);
LayerTreeHostDamageTest::SetupTree();
client_.set_bounds(root->bounds());
}
@@ -92,7 +92,7 @@ class LayerTreeHostDamageTestSetViewportSize
scoped_refptr<FakePictureLayer> root = FakePictureLayer::Create(&client_);
root->SetBounds(gfx::Size(10, 10));
- layer_tree_host()->SetRootLayer(root);
+ layer_tree()->SetRootLayer(root);
LayerTreeHostDamageTest::SetupTree();
client_.set_bounds(root->bounds());
}
@@ -105,7 +105,7 @@ class LayerTreeHostDamageTestSetViewportSize
void DidCommitAndDrawFrame() override {
switch (layer_tree_host()->source_frame_number()) {
case 1:
- layer_tree_host()->SetViewportSize(gfx::Size(15, 15));
+ layer_tree()->SetViewportSize(gfx::Size(15, 15));
break;
}
}
@@ -161,7 +161,7 @@ class LayerTreeHostDamageTestNoDamageDoesNotSwap
content_->SetBounds(gfx::Size(2000, 100));
root->AddChild(content_);
- layer_tree_host()->SetRootLayer(root);
+ layer_tree()->SetRootLayer(root);
LayerTreeHostDamageTest::SetupTree();
client_.set_bounds(root->bounds());
}
@@ -211,7 +211,7 @@ class LayerTreeHostDamageTestNoDamageDoesNotSwap
case 2:
// Cause visible damage.
content_->SetNeedsDisplayRect(
- gfx::Rect(layer_tree_host()->device_viewport_size()));
+ gfx::Rect(layer_tree()->device_viewport_size()));
break;
case 3:
// Cause non-visible damage.
@@ -246,7 +246,7 @@ class LayerTreeHostDamageTestForcedFullDamage : public LayerTreeHostDamageTest {
child_->SetBounds(gfx::Size(30, 30));
root_->AddChild(child_);
- layer_tree_host()->SetRootLayer(root_);
+ layer_tree()->SetRootLayer(root_);
LayerTreeHostDamageTest::SetupTree();
client_.set_bounds(root_->bounds());
}
@@ -332,7 +332,7 @@ class LayerTreeHostScrollbarDamageTest : public LayerTreeHostDamageTest {
scoped_refptr<Layer> root_layer = Layer::Create();
root_layer->SetBounds(gfx::Size(400, 400));
root_layer->SetMasksToBounds(true);
- layer_tree_host()->SetRootLayer(root_layer);
+ layer_tree()->SetRootLayer(root_layer);
scoped_refptr<Layer> scroll_clip_layer = Layer::Create();
content_layer_ = FakePictureLayer::Create(&client_);
@@ -442,7 +442,7 @@ class LayerTreeHostDamageTestScrollbarDoesDamage
void ResizeScrollLayer() {
EXPECT_EQ(3, num_draws_);
- Layer* root = layer_tree_host()->root_layer();
+ Layer* root = layer_tree()->root_layer();
content_layer_->SetBounds(
gfx::Size(root->bounds().width() + 60, root->bounds().height() + 100));
}

Powered by Google App Engine
This is Rietveld 408576698