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

Unified Diff: cc/quads/render_pass.h

Issue 1044093005: Preliminary compositor disabling patch. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: cc/quads/render_pass.h
diff --git a/cc/quads/render_pass.h b/cc/quads/render_pass.h
index 46a8084b387da41a0be55d0974a4bd3c38372a20..9898da3e2991472b9030186edfccc39b6dddc550 100644
--- a/cc/quads/render_pass.h
+++ b/cc/quads/render_pass.h
@@ -74,6 +74,7 @@ class CC_EXPORT RenderPass {
void SetAll(RenderPassId id,
const gfx::Rect& output_rect,
const gfx::Rect& damage_rect,
+ const gfx::Rect& overlay_rect,
const gfx::Transform& transform_to_root_target,
bool has_transparent_background);
@@ -93,12 +94,22 @@ class CC_EXPORT RenderPass {
DrawQuad* CopyFromAndAppendDrawQuad(const DrawQuad* quad,
const SharedQuadState* shared_quad_state);
+ // Recalculates |overlay_damage|, call this when overlay quads are removed
+ // from the list.
+ void RecalculateOverlayDamage();
+
+ // Unions |overlay_rect| into |damage_rect|.
+ void UnionOverlayDamage();
+
+ gfx::Rect GetFullDamageRect();
+
// Uniquely identifies the render pass in the compositor's current frame.
RenderPassId id;
// These are in the space of the render pass' physical pixels.
gfx::Rect output_rect;
gfx::Rect damage_rect;
+ gfx::Rect overlay_rect;
// Transforms from the origin of the |output_rect| to the origin of the root
// render pass' |output_rect|.

Powered by Google App Engine
This is Rietveld 408576698