| Index: gpu/ipc/service/direct_composition_surface_win_unittest.cc
|
| diff --git a/gpu/ipc/service/direct_composition_surface_win_unittest.cc b/gpu/ipc/service/direct_composition_surface_win_unittest.cc
|
| index b1aa306f8177fadb0284f1d8d493850fb6fa5c3e..62d9cb52bc3d98891e5901e61fdb65f775c3a99f 100644
|
| --- a/gpu/ipc/service/direct_composition_surface_win_unittest.cc
|
| +++ b/gpu/ipc/service/direct_composition_surface_win_unittest.cc
|
| @@ -502,11 +502,22 @@ TEST_F(DirectCompositionPixelTest, VideoSwapchain) {
|
| ui::DCRendererLayerParams params(
|
| false, gfx::Rect(), 1, gfx::Transform(),
|
| std::vector<scoped_refptr<gl::GLImage>>{image_dxgi},
|
| - gfx::RectF(gfx::Rect(texture_size)), gfx::Rect(window_size), 0, 0, 1.0,
|
| + gfx::RectF(gfx::Rect(texture_size)), gfx::Rect(texture_size), 0, 0, 1.0,
|
| 0);
|
| surface_->ScheduleDCLayer(params);
|
|
|
| EXPECT_EQ(gfx::SwapResult::SWAP_ACK, surface_->SwapBuffers());
|
| +
|
| + // Scaling up the swapchain with the same image should cause it to be
|
| + // transformed again, but not presented again.
|
| + ui::DCRendererLayerParams params2(
|
| + false, gfx::Rect(), 1, gfx::Transform(),
|
| + std::vector<scoped_refptr<gl::GLImage>>{image_dxgi},
|
| + gfx::RectF(gfx::Rect(texture_size)), gfx::Rect(window_size), 0, 0, 1.0,
|
| + 0);
|
| + surface_->ScheduleDCLayer(params2);
|
| +
|
| + EXPECT_EQ(gfx::SwapResult::SWAP_ACK, surface_->SwapBuffers());
|
| Sleep(1000);
|
|
|
| SkColor expected_color = SkColorSetRGB(0xff, 0xb7, 0xff);
|
|
|