| Index: cc/output/renderer_pixeltest.cc
|
| diff --git a/cc/output/renderer_pixeltest.cc b/cc/output/renderer_pixeltest.cc
|
| index 00c91008e29bfc51bcb60b2b742765462058f4c2..6a770e6f29e937b5f8bd06bb7da8939a1bc6f3fb 100644
|
| --- a/cc/output/renderer_pixeltest.cc
|
| +++ b/cc/output/renderer_pixeltest.cc
|
| @@ -1223,12 +1223,11 @@ TYPED_TEST(RendererPixelTest, RenderPassAndMaskWithPartialQuad) {
|
|
|
| // This RenderPassDrawQuad does not include the full |viewport_rect| which is
|
| // the size of the child render pass.
|
| - gfx::Rect sub_rect = gfx::Rect(50, 50, 100, 100);
|
| + gfx::Rect sub_rect = gfx::Rect(50, 50, 200, 100);
|
| EXPECT_NE(sub_rect.x(), child_pass->output_rect.x());
|
| EXPECT_NE(sub_rect.y(), child_pass->output_rect.y());
|
| EXPECT_NE(sub_rect.right(), child_pass->output_rect.right());
|
| EXPECT_NE(sub_rect.bottom(), child_pass->output_rect.bottom());
|
| - EXPECT_TRUE(child_pass->output_rect.Contains(sub_rect));
|
|
|
| // Set up a mask on the RenderPassDrawQuad.
|
| RenderPassDrawQuad* mask_quad =
|
| @@ -1238,10 +1237,10 @@ TYPED_TEST(RendererPixelTest, RenderPassAndMaskWithPartialQuad) {
|
| sub_rect,
|
| child_pass_id,
|
| mask_resource_id,
|
| - gfx::RectF(1.f, 1.f), // mask_uv_rect
|
| - FilterOperations(), // foreground filters
|
| - gfx::Vector2dF(), // filters scale
|
| - FilterOperations()); // background filters
|
| + gfx::RectF(0.5f, 0.5f, 2.f, 1.f), // mask_uv_rect
|
| + FilterOperations(), // foreground filters
|
| + gfx::Vector2dF(), // filters scale
|
| + FilterOperations()); // background filters
|
|
|
| // White background behind the masked render pass.
|
| SolidColorDrawQuad* white =
|
| @@ -1258,7 +1257,7 @@ TYPED_TEST(RendererPixelTest, RenderPassAndMaskWithPartialQuad) {
|
|
|
| EXPECT_TRUE(this->RunPixelTest(
|
| &pass_list,
|
| - base::FilePath(FILE_PATH_LITERAL("image_mask_of_layer.png")),
|
| + base::FilePath(FILE_PATH_LITERAL("mask_bottom_right.png")),
|
| ExactPixelComparator(true)));
|
| }
|
|
|
|
|