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

Unified Diff: cc/trees/layer_tree_host_unittest_damage.cc

Issue 1452353002: Turn off computation of the interest rect in cc in synchronized paint mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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_copyrequest.cc ('k') | cc/trees/layer_tree_host_unittest_occlusion.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_damage.cc
diff --git a/cc/trees/layer_tree_host_unittest_damage.cc b/cc/trees/layer_tree_host_unittest_damage.cc
index 6ca11e9c51b4f9f0c000f7b40b2544a5c088de8e..a1c4cdf69ad69334c1114c50baa052faf49975d6 100644
--- a/cc/trees/layer_tree_host_unittest_damage.cc
+++ b/cc/trees/layer_tree_host_unittest_damage.cc
@@ -33,6 +33,7 @@ class LayerTreeHostDamageTestSetNeedsRedraw
layer_tree_host()->SetRootLayer(root);
LayerTreeHostDamageTest::SetupTree();
+ client_.set_bounds(root->bounds());
}
void BeginTest() override {
@@ -95,6 +96,7 @@ class LayerTreeHostDamageTestSetViewportSize
layer_tree_host()->SetRootLayer(root);
LayerTreeHostDamageTest::SetupTree();
+ client_.set_bounds(root->bounds());
}
void BeginTest() override {
@@ -167,6 +169,7 @@ class LayerTreeHostDamageTestNoDamageDoesNotSwap
layer_tree_host()->SetRootLayer(root);
LayerTreeHostDamageTest::SetupTree();
+ client_.set_bounds(root->bounds());
}
DrawResult PrepareToDrawOnThread(LayerTreeHostImpl* host_impl,
@@ -251,6 +254,7 @@ class LayerTreeHostDamageTestForcedFullDamage : public LayerTreeHostDamageTest {
root_->AddChild(child_);
layer_tree_host()->SetRootLayer(root_);
LayerTreeHostDamageTest::SetupTree();
+ client_.set_bounds(root_->bounds());
}
DrawResult PrepareToDrawOnThread(LayerTreeHostImpl* host_impl,
@@ -363,6 +367,7 @@ class LayerTreeHostScrollbarDamageTest : public LayerTreeHostDamageTest {
EXPECT_FALSE(content_rect.Intersects(scrollbar_rect));
LayerTreeHostDamageTest::SetupTree();
+ client_.set_bounds(root_layer->bounds());
}
private:
« no previous file with comments | « cc/trees/layer_tree_host_unittest_copyrequest.cc ('k') | cc/trees/layer_tree_host_unittest_occlusion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698