Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3136)

Unified Diff: cc/output/output_surface.h

Issue 2612023002: cc: Implement overdraw feedback debugging feature. (Closed)
Patch Set: make sure overdraw_feedback_ is initialized and reset properly Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/overlay_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.h
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index e5199e6d6ccf9961114ac2a4c2cc57b88fdf027d..740039cbc686eef5e9cf707f85b1100d632e307f 100644
--- a/cc/output/output_surface.h
+++ b/cc/output/output_surface.h
@@ -44,6 +44,10 @@ 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.
+ // Note: HasExternalStencilTest() must return false when an output surface
+ // has been configured for stencil usage.
+ bool supports_stencil = false;
};
// Constructor for GL-based compositing.
@@ -94,7 +98,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;
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/overlay_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698