| Index: cc/test/pixel_test_output_surface.cc
|
| diff --git a/cc/test/pixel_test_output_surface.cc b/cc/test/pixel_test_output_surface.cc
|
| index 9a4d66a38c0a3f4bb145ba51b856326f483291b3..ffc3d26c465814ecdbde0a9663423f4381eccb07 100644
|
| --- a/cc/test/pixel_test_output_surface.cc
|
| +++ b/cc/test/pixel_test_output_surface.cc
|
| @@ -15,7 +15,11 @@ void PixelTestOutputSurface::Reshape(gfx::Size size, float scale_factor) {
|
| OutputSurface::Reshape(expanded_size, scale_factor);
|
|
|
| gfx::Rect offset_viewport = gfx::Rect(size) + viewport_offset_;
|
| - SetExternalDrawConstraints(gfx::Transform(), offset_viewport);
|
| + gfx::Rect offset_clip = device_clip_.IsEmpty()
|
| + ? offset_viewport
|
| + : device_clip_ + viewport_offset_;
|
| + SetExternalDrawConstraints(
|
| + gfx::Transform(), offset_viewport, offset_clip, true);
|
| }
|
|
|
| } // namespace cc
|
|
|