Index: cc/quads/render_pass.h |
diff --git a/cc/quads/render_pass.h b/cc/quads/render_pass.h |
index 4285e53010311d27d7b4fd58ddb70f81b15354c0..5cada2a2f146ac4906cff82495cf91386c6a992e 100644 |
--- a/cc/quads/render_pass.h |
+++ b/cc/quads/render_pass.h |
@@ -62,6 +62,11 @@ class CC_EXPORT RenderPass { |
} |
}; |
+ // Specifies whether the pass is going into an overlay, needs to be rendered |
+ // into a buffer before it can be presented to overlay hardware or a quad |
+ // inside it is presented as is. |
+ enum OverlayState { NO_OVERLAY, RENDER_AND_OVERLAY, SIMPLE_OVERLAY, }; |
+ |
~RenderPass(); |
static scoped_ptr<RenderPass> Create(); |
@@ -84,7 +89,8 @@ class CC_EXPORT RenderPass { |
const gfx::Rect& output_rect, |
const gfx::RectF& damage_rect, |
const gfx::Transform& transform_to_root_target, |
- bool has_transparent_background); |
+ bool has_transparent_background, |
+ OverlayState overlay_state); |
scoped_ptr<base::Value> AsValue() const; |
@@ -111,6 +117,8 @@ class CC_EXPORT RenderPass { |
QuadList quad_list; |
SharedQuadStateList shared_quad_state_list; |
+ OverlayState overlay_state; |
+ |
protected: |
explicit RenderPass(size_t num_layers); |
RenderPass(); |