| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 private: | 192 private: |
| 193 TransformPaintPropertyNode( | 193 TransformPaintPropertyNode( |
| 194 PassRefPtr<const TransformPaintPropertyNode> parent, | 194 PassRefPtr<const TransformPaintPropertyNode> parent, |
| 195 const TransformationMatrix& matrix, | 195 const TransformationMatrix& matrix, |
| 196 const FloatPoint3D& origin, | 196 const FloatPoint3D& origin, |
| 197 bool flattensInheritedTransform, | 197 bool flattensInheritedTransform, |
| 198 unsigned renderingContextId, | 198 unsigned renderingContextId, |
| 199 CompositingReasons directCompositingReasons, | 199 CompositingReasons directCompositingReasons, |
| 200 CompositorElementId compositorElementId, | 200 CompositorElementId compositorElementId, |
| 201 PassRefPtr<ScrollPaintPropertyNode> scroll = nullptr) | 201 PassRefPtr<ScrollPaintPropertyNode> scroll = nullptr) |
| 202 : m_parent(parent), | 202 : m_parent(std::move(parent)), |
| 203 m_matrix(matrix), | 203 m_matrix(matrix), |
| 204 m_origin(origin), | 204 m_origin(origin), |
| 205 m_flattensInheritedTransform(flattensInheritedTransform), | 205 m_flattensInheritedTransform(flattensInheritedTransform), |
| 206 m_renderingContextId(renderingContextId), | 206 m_renderingContextId(renderingContextId), |
| 207 m_directCompositingReasons(directCompositingReasons), | 207 m_directCompositingReasons(directCompositingReasons), |
| 208 m_compositorElementId(compositorElementId), | 208 m_compositorElementId(compositorElementId), |
| 209 m_scroll(scroll) {} | 209 m_scroll(std::move(scroll)) {} |
| 210 | 210 |
| 211 // For access to getTransformCache() and setCachedTransform. | 211 // For access to getTransformCache() and setCachedTransform. |
| 212 friend class GeometryMapper; | 212 friend class GeometryMapper; |
| 213 friend class GeometryMapperTest; | 213 friend class GeometryMapperTest; |
| 214 | 214 |
| 215 GeometryMapperTransformCache& getTransformCache() const { | 215 GeometryMapperTransformCache& getTransformCache() const { |
| 216 return const_cast<TransformPaintPropertyNode*>(this)->getTransformCache(); | 216 return const_cast<TransformPaintPropertyNode*>(this)->getTransformCache(); |
| 217 } | 217 } |
| 218 | 218 |
| 219 GeometryMapperTransformCache& getTransformCache() { | 219 GeometryMapperTransformCache& getTransformCache() { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 234 std::unique_ptr<GeometryMapperTransformCache> m_geometryMapperTransformCache; | 234 std::unique_ptr<GeometryMapperTransformCache> m_geometryMapperTransformCache; |
| 235 }; | 235 }; |
| 236 | 236 |
| 237 // Redeclared here to avoid ODR issues. | 237 // Redeclared here to avoid ODR issues. |
| 238 // See platform/testing/PaintPrinters.h. | 238 // See platform/testing/PaintPrinters.h. |
| 239 void PrintTo(const TransformPaintPropertyNode&, std::ostream*); | 239 void PrintTo(const TransformPaintPropertyNode&, std::ostream*); |
| 240 | 240 |
| 241 } // namespace blink | 241 } // namespace blink |
| 242 | 242 |
| 243 #endif // TransformPaintPropertyNode_h | 243 #endif // TransformPaintPropertyNode_h |
| OLD | NEW |