Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h

Issue 2306293002: Replaced PassRefPtr copies with moves in Source/platform. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/transforms/TransformationMatrix.h" 10 #include "platform/transforms/TransformationMatrix.h"
(...skipping 10 matching lines...) Expand all
21 // for the root. 21 // for the root.
22 class PLATFORM_EXPORT TransformPaintPropertyNode : public RefCounted<TransformPa intPropertyNode> { 22 class PLATFORM_EXPORT TransformPaintPropertyNode : public RefCounted<TransformPa intPropertyNode> {
23 public: 23 public:
24 static PassRefPtr<TransformPaintPropertyNode> create( 24 static PassRefPtr<TransformPaintPropertyNode> create(
25 PassRefPtr<const TransformPaintPropertyNode> parent, 25 PassRefPtr<const TransformPaintPropertyNode> parent,
26 const TransformationMatrix& matrix, 26 const TransformationMatrix& matrix,
27 const FloatPoint3D& origin, 27 const FloatPoint3D& origin,
28 bool flattensInheritedTransform = false, 28 bool flattensInheritedTransform = false,
29 unsigned renderingContextID = 0) 29 unsigned renderingContextID = 0)
30 { 30 {
31 return adoptRef(new TransformPaintPropertyNode(matrix, origin, parent, f lattensInheritedTransform, renderingContextID)); 31 return adoptRef(new TransformPaintPropertyNode(matrix, origin, std::move (parent), flattensInheritedTransform, renderingContextID));
32 } 32 }
33 33
34 void update(PassRefPtr<const TransformPaintPropertyNode> parent, const Trans formationMatrix& matrix, const FloatPoint3D& origin, bool flattensInheritedTrans form = false, unsigned renderingContextID = 0) 34 void update(PassRefPtr<const TransformPaintPropertyNode> parent, const Trans formationMatrix& matrix, const FloatPoint3D& origin, bool flattensInheritedTrans form = false, unsigned renderingContextID = 0)
35 { 35 {
36 m_parent = parent; 36 m_parent = parent;
37 m_matrix = matrix; 37 m_matrix = matrix;
38 m_origin = origin; 38 m_origin = origin;
39 m_flattensInheritedTransform = flattensInheritedTransform; 39 m_flattensInheritedTransform = flattensInheritedTransform;
40 m_renderingContextID = renderingContextID; 40 m_renderingContextID = renderingContextID;
41 } 41 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 unsigned m_renderingContextID; 79 unsigned m_renderingContextID;
80 }; 80 };
81 81
82 // Redeclared here to avoid ODR issues. 82 // Redeclared here to avoid ODR issues.
83 // See platform/testing/PaintPrinters.h. 83 // See platform/testing/PaintPrinters.h.
84 void PrintTo(const TransformPaintPropertyNode&, std::ostream*); 84 void PrintTo(const TransformPaintPropertyNode&, std::ostream*);
85 85
86 } // namespace blink 86 } // namespace blink
87 87
88 #endif // TransformPaintPropertyNode_h 88 #endif // TransformPaintPropertyNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698