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