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

Unified Diff: Source/core/rendering/RenderLayer.h

Issue 15181006: Plumb CompositingReason from Blink to compositor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Version with compositing reasons initialized on creation Created 7 years, 7 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: Source/core/rendering/RenderLayer.h
diff --git a/Source/core/rendering/RenderLayer.h b/Source/core/rendering/RenderLayer.h
index 735a870fcbe8d13295ec51ecfac61c3475df2e72..ecb77f512a1ac73f42c70f06a0f798a1035f712d 100644
--- a/Source/core/rendering/RenderLayer.h
+++ b/Source/core/rendering/RenderLayer.h
@@ -117,7 +117,16 @@ enum {
// The root layer is a special case that may be forced to be a layer, but also it needs to be
// a layer if anything else in the subtree is composited.
- CompositingReasonRoot = 1 << 26
+ CompositingReasonRoot = 1 << 26,
+
+ // RenderLayerBacking internal hierarchy reasons
+ CompositingReasonLayerForClip = 1 << 27,
+ CompositingReasonLayerForDescendantClip = 1 << 28,
+ CompositingReasonLayerForScrollbar = 1 << 29,
+ CompositingReasonLayerForScrollingContainer = 1 << 30,
+ CompositingReasonLayerForForeground = 1 << 31
+
+ // Note: if you add more reasons here, you will need to update the WebCompositingReasons enum as well.
};
typedef unsigned CompositingReasons;

Powered by Google App Engine
This is Rietveld 408576698