| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // The equality operator is used by FindPropertiesNeedingUpdate.h for checking | 102 // The equality operator is used by FindPropertiesNeedingUpdate.h for checking |
| 103 // if a transform node has changed. | 103 // if a transform node has changed. |
| 104 bool operator==(const TransformPaintPropertyNode& o) const { | 104 bool operator==(const TransformPaintPropertyNode& o) const { |
| 105 return m_parent == o.m_parent && m_matrix == o.m_matrix && | 105 return m_parent == o.m_parent && m_matrix == o.m_matrix && |
| 106 m_origin == o.m_origin && | 106 m_origin == o.m_origin && |
| 107 m_flattensInheritedTransform == o.m_flattensInheritedTransform && | 107 m_flattensInheritedTransform == o.m_flattensInheritedTransform && |
| 108 m_renderingContextId == o.m_renderingContextId && | 108 m_renderingContextId == o.m_renderingContextId && |
| 109 m_directCompositingReasons == o.m_directCompositingReasons && | 109 m_directCompositingReasons == o.m_directCompositingReasons && |
| 110 m_compositorElementId == o.m_compositorElementId; | 110 m_compositorElementId == o.m_compositorElementId; |
| 111 } | 111 } |
| 112 |
| 113 String toTreeString() const; |
| 112 #endif | 114 #endif |
| 113 | 115 |
| 114 String toString() const; | 116 String toString() const; |
| 115 | 117 |
| 116 private: | 118 private: |
| 117 TransformPaintPropertyNode( | 119 TransformPaintPropertyNode( |
| 118 PassRefPtr<const TransformPaintPropertyNode> parent, | 120 PassRefPtr<const TransformPaintPropertyNode> parent, |
| 119 const TransformationMatrix& matrix, | 121 const TransformationMatrix& matrix, |
| 120 const FloatPoint3D& origin, | 122 const FloatPoint3D& origin, |
| 121 bool flattensInheritedTransform, | 123 bool flattensInheritedTransform, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 139 CompositorElementId m_compositorElementId; | 141 CompositorElementId m_compositorElementId; |
| 140 }; | 142 }; |
| 141 | 143 |
| 142 // Redeclared here to avoid ODR issues. | 144 // Redeclared here to avoid ODR issues. |
| 143 // See platform/testing/PaintPrinters.h. | 145 // See platform/testing/PaintPrinters.h. |
| 144 void PrintTo(const TransformPaintPropertyNode&, std::ostream*); | 146 void PrintTo(const TransformPaintPropertyNode&, std::ostream*); |
| 145 | 147 |
| 146 } // namespace blink | 148 } // namespace blink |
| 147 | 149 |
| 148 #endif // TransformPaintPropertyNode_h | 150 #endif // TransformPaintPropertyNode_h |
| OLD | NEW |