| 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 b32bff80e47b077df4c7f5d19e527c811dcb390e..3078fe5b694b3b0799efb6be8456c43a559b2acf 100644
|
| --- a/cc/test/pixel_test_output_surface.cc
|
| +++ b/cc/test/pixel_test_output_surface.cc
|
| @@ -21,11 +21,14 @@ PixelTestOutputSurface::PixelTestOutputSurface(
|
| bool flipped_output_surface)
|
| : OutputSurface(std::move(context_provider)), weak_ptr_factory_(this) {
|
| capabilities_.flipped_output_surface = flipped_output_surface;
|
| + capabilities_.supports_stencil = true;
|
| }
|
|
|
| PixelTestOutputSurface::PixelTestOutputSurface(
|
| std::unique_ptr<SoftwareOutputDevice> software_device)
|
| - : OutputSurface(std::move(software_device)), weak_ptr_factory_(this) {}
|
| + : OutputSurface(std::move(software_device)), weak_ptr_factory_(this) {
|
| + capabilities_.supports_stencil = true;
|
| +}
|
|
|
| PixelTestOutputSurface::~PixelTestOutputSurface() = default;
|
|
|
| @@ -44,7 +47,10 @@ void PixelTestOutputSurface::BindFramebuffer() {
|
| void PixelTestOutputSurface::Reshape(const gfx::Size& size,
|
| float device_scale_factor,
|
| const gfx::ColorSpace& color_space,
|
| - bool has_alpha) {
|
| + bool has_alpha,
|
| + bool use_stencil) {
|
| + // External stencil test cannot be tested at the same time as |use_stencil|.
|
| + DCHECK(!use_stencil || !external_stencil_test_);
|
| if (context_provider()) {
|
| context_provider()->ContextGL()->ResizeCHROMIUM(
|
| size.width(), size.height(), device_scale_factor, has_alpha);
|
|
|