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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositingReasons.h

Issue 2398453002: Rewrap comments to 80 columns in Source/platform/graphics/. (Closed)
Patch Set: Review feedback Created 4 years, 2 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: third_party/WebKit/Source/platform/graphics/CompositingReasons.h
diff --git a/third_party/WebKit/Source/platform/graphics/CompositingReasons.h b/third_party/WebKit/Source/platform/graphics/CompositingReasons.h
index eba3383ee65b8215e5c7d0243ac9838372c1e042..0513a7340904ea3c18e5d345c95d47a1bfab3bc3 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositingReasons.h
+++ b/third_party/WebKit/Source/platform/graphics/CompositingReasons.h
@@ -31,13 +31,15 @@ const uint64_t CompositingReasonVideoOverlay = UINT64_C(1) << 12;
const uint64_t CompositingReasonWillChangeCompositingHint = UINT64_C(1) << 13;
const uint64_t CompositingReasonBackdropFilter = UINT64_C(1) << 14;
-// Overlap reasons that require knowing what's behind you in paint-order before knowing the answer
+// Overlap reasons that require knowing what's behind you in paint-order before
+// knowing the answer.
const uint64_t CompositingReasonAssumedOverlap = UINT64_C(1) << 15;
const uint64_t CompositingReasonOverlap = UINT64_C(1) << 16;
const uint64_t CompositingReasonNegativeZIndexChildren = UINT64_C(1) << 17;
const uint64_t CompositingReasonSquashingDisallowed = UINT64_C(1) << 18;
-// Subtree reasons that require knowing what the status of your subtree is before knowing the answer
+// Subtree reasons that require knowing what the status of your subtree is
+// before knowing the answer.
const uint64_t CompositingReasonTransformWithCompositedDescendants = UINT64_C(1)
<< 19;
const uint64_t CompositingReasonOpacityWithCompositedDescendants = UINT64_C(1)
@@ -61,8 +63,8 @@ const uint64_t CompositingReasonIsolateCompositedDescendants = UINT64_C(1)
const uint64_t CompositingReasonPositionFixedWithCompositedDescendants =
UINT64_C(1) << 30;
-// 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.
+// The root layer is a special case. It may be forced to be a layer, but it also
+// needs to be a layer if anything else in the subtree is composited.
const uint64_t CompositingReasonRoot = UINT64_C(1) << 31;
// CompositedLayerMapping internal hierarchy reasons
@@ -91,7 +93,8 @@ const uint64_t CompositingReasonInlineTransform = UINT64_C(1) << 48;
const uint64_t CompositingReasonCompositorProxy = UINT64_C(1) << 49;
-// Various combinations of compositing reasons are defined here also, for more intutive and faster bitwise logic.
+// Various combinations of compositing reasons are defined here also, for more
+// intutive and faster bitwise logic.
const uint64_t CompositingReasonComboAllDirectReasons =
CompositingReason3DTransform | CompositingReasonVideo |
CompositingReasonCanvas | CompositingReasonPlugin |
@@ -140,8 +143,11 @@ const uint64_t CompositingReasonComboReasonsThatRequireOwnBacking =
CompositingReasonFilterWithCompositedDescendants |
CompositingReasonBlendingWithCompositedDescendants |
CompositingReasonIsolateCompositedDescendants |
- CompositingReasonPreserve3DWith3DDescendants // preserve-3d has to create backing store to ensure that 3d-transformed elements intersect.
- | CompositingReasonBackdropFilter |
+ CompositingReasonPreserve3DWith3DDescendants | // preserve-3d has to create
+ // a backing store to ensure
+ // that 3d-transformed
+ // elements intersect.
+ CompositingReasonBackdropFilter |
CompositingReasonPositionFixedWithCompositedDescendants;
const uint64_t CompositingReasonComboSquashableReasons =
@@ -150,12 +156,14 @@ const uint64_t CompositingReasonComboSquashableReasons =
typedef uint64_t CompositingReasons;
-// Any reasons other than overlap or assumed overlap will require the layer to be separately compositing.
+// Any reasons other than overlap or assumed overlap will require the layer to
+// be separately compositing.
inline bool requiresCompositing(CompositingReasons reasons) {
return reasons & ~CompositingReasonComboSquashableReasons;
}
-// If the layer has overlap or assumed overlap, but no other reasons, then it should be squashed.
+// If the layer has overlap or assumed overlap, but no other reasons, then it
+// should be squashed.
inline bool requiresSquashing(CompositingReasons reasons) {
return !requiresCompositing(reasons) &&
(reasons & CompositingReasonComboSquashableReasons);

Powered by Google App Engine
This is Rietveld 408576698