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

Unified Diff: cc/layers/picture_layer_impl_unittest.cc

Issue 465853004: Moving RenderSurface creation outside of CalcDrawProps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/layers/picture_layer_impl_unittest.cc
diff --git a/cc/layers/picture_layer_impl_unittest.cc b/cc/layers/picture_layer_impl_unittest.cc
index d18e97a553baaf9bf7e99432f33a2e7d80615918..9564a7baf2c6541bc20c92deb0c72380840765da 100644
--- a/cc/layers/picture_layer_impl_unittest.cc
+++ b/cc/layers/picture_layer_impl_unittest.cc
@@ -150,6 +150,7 @@ class PictureLayerImplTest : public testing::Test {
pending_layer = FakePictureLayerImpl::CreateWithRasterSource(
pending_tree, id_, raster_source);
pending_layer->SetDrawsContent(true);
+ pending_layer->SetHasRenderSurface(true);
}
// The bounds() just mirror the pile size.
pending_layer->SetBounds(pending_layer->raster_source()->GetSize());
@@ -3741,6 +3742,7 @@ TEST_F(PictureLayerImplTest, UpdateTilesForMasksWithNoVisibleContent) {
FakePictureLayerImpl* pending_mask_content = mask.get();
layer_with_mask->SetMaskLayer(mask.Pass());
+ layer_with_mask->SetHasRenderSurface(true);
scoped_ptr<FakePictureLayerImpl> child_of_layer_with_mask =
FakePictureLayerImpl::Create(host_impl_.pending_tree(), 4);
@@ -3752,6 +3754,7 @@ TEST_F(PictureLayerImplTest, UpdateTilesForMasksWithNoVisibleContent) {
layer_with_mask->AddChild(child_of_layer_with_mask.Pass());
root->AddChild(layer_with_mask.Pass());
+ root->SetHasRenderSurface(true);
host_impl_.pending_tree()->SetRootLayer(root.Pass());

Powered by Google App Engine
This is Rietveld 408576698