| Index: cc/trees/layer_tree_host_impl_unittest.cc
|
| diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
|
| index 2b0b9676be86849168b31c3ef7cc88a170d719bf..4fbfc85d700d031736e9c7db97d772bd77670016 100644
|
| --- a/cc/trees/layer_tree_host_impl_unittest.cc
|
| +++ b/cc/trees/layer_tree_host_impl_unittest.cc
|
| @@ -6947,6 +6947,7 @@ TEST_F(LayerTreeHostImplTest, BlendingOffWhenDrawingOpaqueLayers) {
|
| layer1->SetExpectation(true, false);
|
| layer1->SetUpdateRect(gfx::Rect(layer1->bounds()));
|
| host_impl_->active_tree()->BuildPropertyTreesForTesting();
|
| + host_impl_->active_tree()->set_needs_update_draw_properties();
|
| EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame));
|
| host_impl_->DrawLayers(&frame);
|
| EXPECT_TRUE(layer1->quads_appended());
|
| @@ -7008,6 +7009,7 @@ TEST_F(LayerTreeHostImplTest, BlendingOffWhenDrawingOpaqueLayers) {
|
| layer2->SetExpectation(false, false);
|
| layer2->SetUpdateRect(gfx::Rect(layer1->bounds()));
|
| host_impl_->active_tree()->BuildPropertyTreesForTesting();
|
| + host_impl_->active_tree()->set_needs_update_draw_properties();
|
| EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame));
|
| host_impl_->DrawLayers(&frame);
|
| EXPECT_TRUE(layer1->quads_appended());
|
| @@ -7023,6 +7025,7 @@ TEST_F(LayerTreeHostImplTest, BlendingOffWhenDrawingOpaqueLayers) {
|
| layer2->SetExpectation(false, false);
|
| layer2->SetUpdateRect(gfx::Rect(layer1->bounds()));
|
| host_impl_->active_tree()->BuildPropertyTreesForTesting();
|
| + host_impl_->active_tree()->set_needs_update_draw_properties();
|
| EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame));
|
| host_impl_->DrawLayers(&frame);
|
| EXPECT_TRUE(layer1->quads_appended());
|
| @@ -7116,6 +7119,7 @@ TEST_F(LayerTreeHostImplTest, BlendingOffWhenDrawingOpaqueLayers) {
|
| layer1->SetExpectation(true, false);
|
| layer1->SetUpdateRect(gfx::Rect(layer1->bounds()));
|
| host_impl_->active_tree()->BuildPropertyTreesForTesting();
|
| + host_impl_->active_tree()->set_needs_update_draw_properties();
|
| EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame));
|
| host_impl_->DrawLayers(&frame);
|
| EXPECT_TRUE(layer1->quads_appended());
|
| @@ -7129,6 +7133,7 @@ TEST_F(LayerTreeHostImplTest, BlendingOffWhenDrawingOpaqueLayers) {
|
| layer1->SetExpectation(true, false);
|
| layer1->SetUpdateRect(gfx::Rect(layer1->bounds()));
|
| host_impl_->active_tree()->BuildPropertyTreesForTesting();
|
| + host_impl_->active_tree()->set_needs_update_draw_properties();
|
| EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame));
|
| host_impl_->DrawLayers(&frame);
|
| EXPECT_TRUE(layer1->quads_appended());
|
| @@ -7142,6 +7147,7 @@ TEST_F(LayerTreeHostImplTest, BlendingOffWhenDrawingOpaqueLayers) {
|
| layer1->SetExpectation(true, false);
|
| layer1->SetUpdateRect(gfx::Rect(layer1->bounds()));
|
| host_impl_->active_tree()->BuildPropertyTreesForTesting();
|
| + host_impl_->active_tree()->set_needs_update_draw_properties();
|
| EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame));
|
| host_impl_->DrawLayers(&frame);
|
| EXPECT_TRUE(layer1->quads_appended());
|
| @@ -7156,6 +7162,7 @@ TEST_F(LayerTreeHostImplTest, BlendingOffWhenDrawingOpaqueLayers) {
|
| layer1->SetExpectation(false, false);
|
| layer1->SetUpdateRect(gfx::Rect(layer1->bounds()));
|
| host_impl_->active_tree()->BuildPropertyTreesForTesting();
|
| + host_impl_->active_tree()->set_needs_update_draw_properties();
|
| EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame));
|
| host_impl_->DrawLayers(&frame);
|
| EXPECT_TRUE(layer1->quads_appended());
|
| @@ -7164,6 +7171,7 @@ TEST_F(LayerTreeHostImplTest, BlendingOffWhenDrawingOpaqueLayers) {
|
|
|
| static bool MayContainVideoBitSetOnFrameData(LayerTreeHostImpl* host_impl) {
|
| host_impl->active_tree()->BuildPropertyTreesForTesting();
|
| + host_impl->active_tree()->set_needs_update_draw_properties();
|
| LayerTreeHostImpl::FrameData frame;
|
| EXPECT_EQ(DRAW_SUCCESS, host_impl->PrepareToDraw(&frame));
|
| host_impl->DrawLayers(&frame);
|
|
|