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

Unified Diff: cc/trees/layer_tree_host_unittest_picture.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_occlusion.cc ('k') | cc/trees/layer_tree_host_unittest_proxy.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_picture.cc
diff --git a/cc/trees/layer_tree_host_unittest_picture.cc b/cc/trees/layer_tree_host_unittest_picture.cc
index ec42144df83176bd59c98fe01981235e5b309c58..8dec586018a2f2de06db43176acf9f9bd74bb6c4 100644
--- a/cc/trees/layer_tree_host_unittest_picture.cc
+++ b/cc/trees/layer_tree_host_unittest_picture.cc
@@ -25,6 +25,7 @@ class LayerTreeHostPictureTest : public LayerTreeTest {
root->AddChild(root_picture_layer_);
layer_tree_host()->SetRootLayer(root);
+ client_.set_bounds(size);
}
scoped_refptr<FakePictureLayer> root_picture_layer_;
@@ -142,7 +143,7 @@ class LayerTreeHostPictureTestResizeViewportWithGpuRaster
void SetupTree() override {
scoped_refptr<Layer> root = Layer::Create(layer_settings());
root->SetBounds(gfx::Size(768, 960));
-
+ client_.set_bounds(root->bounds());
client_.set_fill_with_nonsolid_color(true);
picture_ = FakePictureLayer::Create(layer_settings(), &client_);
picture_->SetBounds(gfx::Size(768, 960));
@@ -205,7 +206,6 @@ class LayerTreeHostPictureTestChangeLiveTilesRectWithRecycleTree
scoped_refptr<Layer> root = Layer::Create(layer_settings());
root->SetBounds(gfx::Size(100, 100));
-
// The layer is big enough that the live tiles rect won't cover the full
// layer.
client_.set_fill_with_nonsolid_color(true);
@@ -219,6 +219,7 @@ class LayerTreeHostPictureTestChangeLiveTilesRectWithRecycleTree
layer_tree_host()->SetRootLayer(root);
LayerTreeHostPictureTest::SetupTree();
+ client_.set_bounds(picture_->bounds());
}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
@@ -311,6 +312,7 @@ class LayerTreeHostPictureTestRSLLMembership : public LayerTreeHostPictureTest {
void SetupTree() override {
scoped_refptr<Layer> root = Layer::Create(layer_settings());
root->SetBounds(gfx::Size(100, 100));
+ client_.set_bounds(root->bounds());
child_ = Layer::Create(layer_settings());
root->AddChild(child_);
@@ -417,6 +419,7 @@ class LayerTreeHostPictureTestRSLLMembershipWithScale
layer_tree_host()->SetPageScaleFactorAndLimits(1.f, 1.f, 4.f);
layer_tree_host()->SetRootLayer(root);
LayerTreeHostPictureTest::SetupTree();
+ client_.set_bounds(picture_->bounds());
}
void InitializeSettings(LayerTreeSettings* settings) override {
« no previous file with comments | « cc/trees/layer_tree_host_unittest_occlusion.cc ('k') | cc/trees/layer_tree_host_unittest_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698