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

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: 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 f1ab5429df4b19c8c4d54e5d53024486c50f8fbe..680124545ffeb6b5f650ec351d420f4e0235943c 100644
--- a/Source/core/rendering/RenderLayer.h
+++ b/Source/core/rendering/RenderLayer.h
@@ -116,7 +116,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 << 25
+ CompositingReasonRoot = 1 << 25,
+
+ // RenderLayerBacking internal hierarchy reasons
+ CompositingReasonLayerForClip = 1 << 26,
+ CompositingReasonLayerForDescendantClip = 1 << 27,
+ CompositingReasonLayerForScrollbar = 1 << 28,
+ CompositingReasonsLayerForScrollingContainer = 1 << 29,
+ CompositingReasonsLayerForForeground = 1 << 30
+
+ // 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