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

Unified Diff: cc/blimp/compositor_state_deserializer_unittest.cc

Issue 2467043002: cc/blimp: Eliminate Layer updates for common cases. (Closed)
Patch Set: test update Created 4 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 | « no previous file | cc/blimp/layer_tree_host_remote.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blimp/compositor_state_deserializer_unittest.cc
diff --git a/cc/blimp/compositor_state_deserializer_unittest.cc b/cc/blimp/compositor_state_deserializer_unittest.cc
index e0637d34b186ca1f3ed80de3ee0b8815f4bbb929..faa9d11b99719cb38fe48e25ff168a7f62559267 100644
--- a/cc/blimp/compositor_state_deserializer_unittest.cc
+++ b/cc/blimp/compositor_state_deserializer_unittest.cc
@@ -502,6 +502,8 @@ TEST_F(CompositorStateDeserializerTest, SolidColorScrollbarLayer) {
TEST_F(CompositorStateDeserializerTest, PictureLayer) {
scoped_refptr<Layer> root_layer = Layer::Create();
+ root_layer->SetBounds(gfx::Size(10, 10));
+ root_layer->SetIsDrawable(true);
layer_tree_host_remote_->GetLayerTree()->SetRootLayer(root_layer);
gfx::Size layer_size = gfx::Size(5, 5);
@@ -530,6 +532,7 @@ TEST_F(CompositorStateDeserializerTest, PictureLayer) {
scoped_refptr<PictureLayer> picture_layer =
PictureLayer::Create(&content_client);
picture_layer->SetBounds(layer_size);
+ picture_layer->SetIsDrawable(true);
root_layer->AddChild(picture_layer);
// Synchronize State and verify.
@@ -548,7 +551,8 @@ TEST_F(CompositorStateDeserializerTest, PictureLayer) {
// Now attach new layer with the same DisplayList.
scoped_refptr<PictureLayer> picture_layer2 =
PictureLayer::Create(&content_client);
- picture_layer->SetBounds(layer_size);
+ picture_layer2->SetBounds(layer_size);
+ picture_layer2->SetIsDrawable(true);
root_layer->AddChild(picture_layer2);
// Synchronize State and verify.
« no previous file with comments | « no previous file | cc/blimp/layer_tree_host_remote.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698