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

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: Addressed reviewer feedback 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 bc9f93ee1e06906b94eecea0bff29faf3c0d0b6c..607dd41a5677120e57e2f43060d13c2a72cbed95 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