Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CompositingReasons_h | 5 #ifndef CompositingReasons_h |
| 6 #define CompositingReasons_h | 6 #define CompositingReasons_h |
| 7 | 7 |
| 8 #include "wtf/MathExtras.h" | 8 #include "wtf/MathExtras.h" |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 namespace WebCore { | 11 namespace WebCore { |
| 12 | 12 |
| 13 const uint64_t CompositingReasonNone = 0; | 13 const uint64_t CompositingReasonNone = 0; |
| 14 | 14 |
| 15 // Intrinsic reasons that can be known right away by the layer | 15 // Intrinsic reasons that can be known right away by the layer |
| 16 const uint64_t CompositingReason3DTransform = UINT64_ C(1) << 0; | 16 const uint64_t CompositingReason3DTransform = UINT64_ C(1) << 0; |
| 17 const uint64_t CompositingReasonVideo = UINT64_ C(1) << 1; | 17 const uint64_t CompositingReasonVideo = UINT64_ C(1) << 1; |
| 18 const uint64_t CompositingReasonCanvas = UINT64_ C(1) << 2; | 18 const uint64_t CompositingReasonCanvas = UINT64_ C(1) << 2; |
| 19 const uint64_t CompositingReasonPlugin = UINT64_ C(1) << 3; | 19 const uint64_t CompositingReasonPlugin = UINT64_ C(1) << 3; |
| 20 const uint64_t CompositingReasonIFrame = UINT64_ C(1) << 4; | 20 const uint64_t CompositingReasonIFrame = UINT64_ C(1) << 4; |
| 21 const uint64_t CompositingReasonBackfaceVisibilityHidden = UINT64_ C(1) << 5; | 21 const uint64_t CompositingReasonBackfaceVisibilityHidden = UINT64_ C(1) << 5; |
| 22 const uint64_t CompositingReasonAnimation = UINT64_ C(1) << 6; | 22 const uint64_t CompositingReasonAnimation = UINT64_ C(1) << 6; |
| 23 const uint64_t CompositingReasonFilters = UINT64_ C(1) << 7; | 23 const uint64_t CompositingReasonFilters = UINT64_ C(1) << 7; |
| 24 const uint64_t CompositingReasonPositionFixed = UINT64_ C(1) << 8; | 24 const uint64_t CompositingReasonPositionFixed = UINT64_ C(1) << 8; |
| 25 const uint64_t CompositingReasonPositionSticky = UINT64_ C(1) << 9; | 25 const uint64_t CompositingReasonPositionSticky = UINT64_ C(1) << 9; |
| 26 const uint64_t CompositingReasonOverflowScrollingTouch = UINT64_ C(1) << 10; | 26 const uint64_t CompositingReasonOverflowScrollingTouch = UINT64_ C(1) << 10; |
| 27 | |
| 28 // FIXME: remove the following compositing reason since it's no longer used. | |
|
shawnsingh
2013/09/10 21:23:40
I think it's best to address this FIXME in this pa
mitica
2013/09/11 16:04:14
The only problem with this would be that removing
| |
| 27 const uint64_t CompositingReasonBlending = UINT64_ C(1) << 11; | 29 const uint64_t CompositingReasonBlending = UINT64_ C(1) << 11; |
| 28 | 30 |
| 29 // Overlap reasons that require knowing what's behind you in paint-order before knowing the answer | 31 // Overlap reasons that require knowing what's behind you in paint-order before knowing the answer |
| 30 const uint64_t CompositingReasonAssumedOverlap = UINT64_ C(1) << 12; | 32 const uint64_t CompositingReasonAssumedOverlap = UINT64_ C(1) << 12; |
| 31 const uint64_t CompositingReasonOverlap = UINT64_ C(1) << 13; | 33 const uint64_t CompositingReasonOverlap = UINT64_ C(1) << 13; |
| 32 const uint64_t CompositingReasonNegativeZIndexChildren = UINT64_ C(1) << 14; | 34 const uint64_t CompositingReasonNegativeZIndexChildren = UINT64_ C(1) << 14; |
| 33 | 35 |
| 34 // Subtree reasons that require knowing what the status of your subtree is befor e knowing the answer | 36 // Subtree reasons that require knowing what the status of your subtree is befor e knowing the answer |
| 35 const uint64_t CompositingReasonTransformWithCompositedDescendants = UINT64_ C(1) << 15; | 37 const uint64_t CompositingReasonTransformWithCompositedDescendants = UINT64_ C(1) << 15; |
| 36 const uint64_t CompositingReasonOpacityWithCompositedDescendants = UINT64_ C(1) << 16; | 38 const uint64_t CompositingReasonOpacityWithCompositedDescendants = UINT64_ C(1) << 16; |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 62 | 64 |
| 63 const uint64_t CompositingReasonLayerForVideoOverlay = UINT64_ C(1) << 34; | 65 const uint64_t CompositingReasonLayerForVideoOverlay = UINT64_ C(1) << 34; |
| 64 | 66 |
| 65 // Note: if you add more reasons here, you will need to update WebCompositingRea sons as well. | 67 // Note: if you add more reasons here, you will need to update WebCompositingRea sons as well. |
| 66 typedef uint64_t CompositingReasons; | 68 typedef uint64_t CompositingReasons; |
| 67 | 69 |
| 68 | 70 |
| 69 } // namespace WebCore | 71 } // namespace WebCore |
| 70 | 72 |
| 71 #endif // CompositingReasons_h | 73 #endif // CompositingReasons_h |
| OLD | NEW |