Chromium Code Reviews| Index: cc/output/output_surface.h |
| diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h |
| index e5199e6d6ccf9961114ac2a4c2cc57b88fdf027d..deb58db8f32e7bef71d51ee4f280904849c958d9 100644 |
| --- a/cc/output/output_surface.h |
| +++ b/cc/output/output_surface.h |
| @@ -44,6 +44,8 @@ class CC_EXPORT OutputSurface { |
| bool uses_default_gl_framebuffer = true; |
| // Whether this OutputSurface is flipped or not. |
| bool flipped_output_surface = false; |
| + // Whether this OutputSurface supports stencil operations or not. |
|
danakj
2017/01/16 16:02:57
Can you mention this is mutually exclusive with Ha
reveman
2017/01/16 18:02:27
Done.
|
| + bool supports_stencil = false; |
| }; |
| // Constructor for GL-based compositing. |
| @@ -94,7 +96,8 @@ class CC_EXPORT OutputSurface { |
| virtual void Reshape(const gfx::Size& size, |
| float device_scale_factor, |
| const gfx::ColorSpace& color_space, |
| - bool has_alpha) = 0; |
| + bool has_alpha, |
| + bool use_stencil) = 0; |
| virtual bool HasExternalStencilTest() const = 0; |
| virtual void ApplyExternalStencil() = 0; |