1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CC_LAYERS_COMPOSITING_REASONS_H_
6 #define CC_LAYERS_COMPOSITING_REASONS_H_
12 // This is a clone of CompositingReasons and WebCompositingReasons from Blink.
13 const uint64 kCompositingReasonUnknown
= 0;
14 const uint64 kCompositingReason3DTransform
= GG_UINT64_C(1) << 0;
15 const uint64 kCompositingReasonVideo
= GG_UINT64_C(1) << 1;
16 const uint64 kCompositingReasonCanvas
= GG_UINT64_C(1) << 2;
17 const uint64 kCompositingReasonPlugin
= GG_UINT64_C(1) << 3;
18 const uint64 kCompositingReasonIFrame
= GG_UINT64_C(1) << 4;
19 const uint64 kCompositingReasonBackfaceVisibilityHidden
= GG_UINT64_C(1) << 5;
20 const uint64 kCompositingReasonAnimation
= GG_UINT64_C(1) << 6;
21 const uint64 kCompositingReasonFilters
= GG_UINT64_C(1) << 7;
22 const uint64 kCompositingReasonPositionFixed
= GG_UINT64_C(1) << 8;
23 const uint64 kCompositingReasonPositionSticky
= GG_UINT64_C(1) << 9;
24 const uint64 kCompositingReasonOverflowScrollingTouch
= GG_UINT64_C(1) << 10;
25 const uint64 kCompositingReasonAssumedOverlap
= GG_UINT64_C(1) << 12;
26 const uint64 kCompositingReasonOverlap
= GG_UINT64_C(1) << 13;
27 const uint64 kCompositingReasonNegativeZIndexChildren
= GG_UINT64_C(1) << 14;
28 const uint64 kCompositingReasonTransformWithCompositedDescendants
=
30 const uint64 kCompositingReasonOpacityWithCompositedDescendants
=
32 const uint64 kCompositingReasonMaskWithCompositedDescendants
=
34 const uint64 kCompositingReasonReflectionWithCompositedDescendants
=
36 const uint64 kCompositingReasonFilterWithCompositedDescendants
=
38 const uint64 kCompositingReasonBlendingWithCompositedDescendants
=
40 const uint64 kCompositingReasonClipsCompositingDescendants
=
42 const uint64 kCompositingReasonPerspective
= GG_UINT64_C(1) << 22;
43 const uint64 kCompositingReasonPreserve3D
= GG_UINT64_C(1) << 23;
44 const uint64 kCompositingReasonReflectionOfCompositedParent
=
46 const uint64 kCompositingReasonRoot
= GG_UINT64_C(1) << 25;
47 const uint64 kCompositingReasonLayerForClip
= GG_UINT64_C(1) << 26;
48 const uint64 kCompositingReasonLayerForScrollbar
= GG_UINT64_C(1) << 27;
49 const uint64 kCompositingReasonLayerForScrollingContainer
=
51 const uint64 kCompositingReasonLayerForForeground
= GG_UINT64_C(1) << 29;
52 const uint64 kCompositingReasonLayerForBackground
= GG_UINT64_C(1) << 30;
53 const uint64 kCompositingReasonLayerForMask
= GG_UINT64_C(1) << 31;
54 const uint64 kCompositingReasonOverflowScrollingParent
= GG_UINT64_C(1) << 32;
55 const uint64 kCompositingReasonOutOfFlowClipping
= GG_UINT64_C(1) << 33;
57 typedef uint64 CompositingReasons
;
61 #endif // CC_LAYERS_COMPOSITING_REASONS_H_