| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 TransformPaintPropertyNode_h | 5 #ifndef TransformPaintPropertyNode_h |
| 6 #define TransformPaintPropertyNode_h | 6 #define TransformPaintPropertyNode_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/geometry/FloatPoint3D.h" | 9 #include "platform/geometry/FloatPoint3D.h" |
| 10 #include "platform/graphics/CompositingReasons.h" | 10 #include "platform/graphics/CompositingReasons.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // the plane of its parent. This is implemented by flattening the total | 93 // the plane of its parent. This is implemented by flattening the total |
| 94 // accumulated transform from its ancestors. | 94 // accumulated transform from its ancestors. |
| 95 bool flattensInheritedTransform() const { | 95 bool flattensInheritedTransform() const { |
| 96 return m_flattensInheritedTransform; | 96 return m_flattensInheritedTransform; |
| 97 } | 97 } |
| 98 | 98 |
| 99 bool hasDirectCompositingReasons() const { | 99 bool hasDirectCompositingReasons() const { |
| 100 return m_directCompositingReasons != CompositingReasonNone; | 100 return m_directCompositingReasons != CompositingReasonNone; |
| 101 } | 101 } |
| 102 | 102 |
| 103 bool requiresCompositingForAnimation() const { |
| 104 return m_directCompositingReasons & CompositingReasonActiveAnimation; |
| 105 } |
| 106 |
| 103 const CompositorElementId& compositorElementId() const { | 107 const CompositorElementId& compositorElementId() const { |
| 104 return m_compositorElementId; | 108 return m_compositorElementId; |
| 105 } | 109 } |
| 106 | 110 |
| 107 // Content whose transform nodes have a common rendering context ID are 3D | 111 // Content whose transform nodes have a common rendering context ID are 3D |
| 108 // sorted. If this is 0, content will not be 3D sorted. | 112 // sorted. If this is 0, content will not be 3D sorted. |
| 109 unsigned renderingContextId() const { return m_renderingContextId; } | 113 unsigned renderingContextId() const { return m_renderingContextId; } |
| 110 bool hasRenderingContext() const { return m_renderingContextId; } | 114 bool hasRenderingContext() const { return m_renderingContextId; } |
| 111 | 115 |
| 112 #if DCHECK_IS_ON() | 116 #if DCHECK_IS_ON() |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 CompositorElementId m_compositorElementId; | 168 CompositorElementId m_compositorElementId; |
| 165 }; | 169 }; |
| 166 | 170 |
| 167 // Redeclared here to avoid ODR issues. | 171 // Redeclared here to avoid ODR issues. |
| 168 // See platform/testing/PaintPrinters.h. | 172 // See platform/testing/PaintPrinters.h. |
| 169 void PrintTo(const TransformPaintPropertyNode&, std::ostream*); | 173 void PrintTo(const TransformPaintPropertyNode&, std::ostream*); |
| 170 | 174 |
| 171 } // namespace blink | 175 } // namespace blink |
| 172 | 176 |
| 173 #endif // TransformPaintPropertyNode_h | 177 #endif // TransformPaintPropertyNode_h |
| OLD | NEW |