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

Unified Diff: cc/trees/layer_tree_host_unittest_context.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
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 174af3213517b394a3cbfce48a846eb53c2efdf1..ead16f238befa4364ff8514ee63007be064c761b 100644
--- a/cc/trees/layer_tree_host_unittest_context.cc
+++ b/cc/trees/layer_tree_host_unittest_context.cc
@@ -636,6 +636,7 @@ class LayerTreeHostContextTestLostContextSucceedsWithContent
layer_tree_host()->SetRootLayer(root_);
LayerTreeHostContextTest::SetupTree();
+ client_.set_bounds(root_->bounds());
}
void InvalidateAndSetNeedsCommit() override {
@@ -709,6 +710,7 @@ class LayerTreeHostContextTestLostContextAndEvictTextures
scoped_refptr<FakePictureLayer> picture_layer =
FakePictureLayer::Create(layer_settings(), &client_);
picture_layer->SetBounds(gfx::Size(10, 20));
+ client_.set_bounds(picture_layer->bounds());
layer_tree_host()->SetRootLayer(picture_layer);
LayerTreeHostContextTest::SetupTree();
@@ -843,6 +845,7 @@ class LayerTreeHostContextTestLayersNotified : public LayerTreeHostContextTest {
layer_tree_host()->SetRootLayer(root_);
LayerTreeHostContextTest::SetupTree();
+ client_.set_bounds(root_->bounds());
}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
@@ -983,6 +986,7 @@ class LayerTreeHostContextTestDontUseLostResources
scoped_refptr<PictureLayer> mask =
PictureLayer::Create(layer_settings_, &client_);
mask->SetBounds(gfx::Size(10, 10));
+ client_.set_bounds(mask->bounds());
scoped_refptr<PictureLayer> layer_with_mask =
PictureLayer::Create(layer_settings_, &client_);
@@ -1135,6 +1139,7 @@ class LayerTreeHostContextTestImplSidePainting
scoped_refptr<PictureLayer> picture =
PictureLayer::Create(layer_settings(), &client_);
picture->SetBounds(gfx::Size(10, 10));
+ client_.set_bounds(picture->bounds());
picture->SetIsDrawable(true);
root->AddChild(picture);
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation_timelines.cc ('k') | cc/trees/layer_tree_host_unittest_copyrequest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698