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

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

Issue 88863002: Land layer squashing behind a flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed bogus asserts Created 7 years 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 | « Source/core/rendering/CompositedLayerMapping.cpp ('k') | Source/core/rendering/CompositingState.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/CompositingReasons.h
diff --git a/Source/core/rendering/CompositingReasons.h b/Source/core/rendering/CompositingReasons.h
index b07999070b27507415902b218d9fd505954707b0..8b023a724f8f990c8e1c5eaee206b327585712e3 100644
--- a/Source/core/rendering/CompositingReasons.h
+++ b/Source/core/rendering/CompositingReasons.h
@@ -62,6 +62,9 @@ const uint64_t CompositingReasonOutOfFlowClipping = UINT64_
const uint64_t CompositingReasonLayerForVideoOverlay = UINT64_C(1) << 34;
const uint64_t CompositingReasonIsolateCompositedDescendants = UINT64_C(1) << 35;
+// Note: if you add more reasons here, you will need to update WebCompositingReasons as well.
+
+// Various combinations of compositing reasons are defined here also, for more intutive and faster bitwise logic.
const uint64_t CompositingReasonComboAllDirectReasons =
CompositingReason3DTransform
| CompositingReasonVideo
@@ -90,7 +93,10 @@ const uint64_t CompositingReasonComboReasonsThatRequireOwnBacking =
| CompositingReasonIsolateCompositedDescendants
| CompositingReasonPreserve3D; // preserve-3d has to create backing store to ensure that 3d-transformed elements intersect.
-// Note: if you add more reasons here, you will need to update WebCompositingReasons as well.
+const uint64_t CompositingReasonComboAllOverlapReasons =
+ CompositingReasonOverlap
+ | CompositingReasonAssumedOverlap;
+
typedef uint64_t CompositingReasons;
« no previous file with comments | « Source/core/rendering/CompositedLayerMapping.cpp ('k') | Source/core/rendering/CompositingState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698