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

Unified Diff: cc/quads/render_pass.h

Issue 197223003: Start of hardware overlay support in CC with Ubercompositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/overlay_unittest.cc ('k') | cc/quads/render_pass.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/quads/render_pass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698