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

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

Issue 2632823002: SPv2: Paint SVG images and self-contained recorded pictures with their own trees. (Closed)
Patch Set: none Created 3 years, 11 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/graphics/CompositingReasons.h" 10 #include "platform/graphics/CompositingReasons.h"
11 #include "platform/graphics/CompositorElementId.h" 11 #include "platform/graphics/CompositorElementId.h"
12 #include "platform/transforms/TransformationMatrix.h" 12 #include "platform/transforms/TransformationMatrix.h"
13 #include "wtf/PassRefPtr.h" 13 #include "wtf/PassRefPtr.h"
14 #include "wtf/RefCounted.h" 14 #include "wtf/RefCounted.h"
15 #include "wtf/RefPtr.h" 15 #include "wtf/RefPtr.h"
16 #include "wtf/text/WTFString.h" 16 #include "wtf/text/WTFString.h"
17 17
18 #include <iosfwd> 18 #include <iosfwd>
19 19
20 namespace blink { 20 namespace blink {
21 21
22 // A transform created by a css property such as "transform" or "perspective" 22 // A transform created by a css property such as "transform" or "perspective"
23 // along with a reference to the parent TransformPaintPropertyNode. 23 // along with a reference to the parent TransformPaintPropertyNode.
24 // 24 //
25 // The transform tree is rooted at a node with no parent. This root node should 25 // The transform tree is rooted at a node with no parent. This root node should
26 // not be modified. 26 // not be modified.
27 class PLATFORM_EXPORT TransformPaintPropertyNode 27 class PLATFORM_EXPORT TransformPaintPropertyNode
28 : public RefCounted<TransformPaintPropertyNode> { 28 : public RefCounted<TransformPaintPropertyNode> {
29 public: 29 public:
30 // This node is really a sentinel, and does not represent a real transform
pdr. 2017/01/17 21:48:00 I'll be removing these soon.
chrishtr 2017/01/17 22:20:27 ACK!!!!!!!!!!!
31 // space.
30 static TransformPaintPropertyNode* root(); 32 static TransformPaintPropertyNode* root();
31 33
32 static PassRefPtr<TransformPaintPropertyNode> create( 34 static PassRefPtr<TransformPaintPropertyNode> create(
33 PassRefPtr<const TransformPaintPropertyNode> parent, 35 PassRefPtr<const TransformPaintPropertyNode> parent,
34 const TransformationMatrix& matrix, 36 const TransformationMatrix& matrix,
35 const FloatPoint3D& origin, 37 const FloatPoint3D& origin,
36 bool flattensInheritedTransform = false, 38 bool flattensInheritedTransform = false,
37 unsigned renderingContextId = 0, 39 unsigned renderingContextId = 0,
38 CompositingReasons directCompositingReasons = CompositingReasonNone, 40 CompositingReasons directCompositingReasons = CompositingReasonNone,
39 const CompositorElementId& compositorElementId = CompositorElementId()) { 41 const CompositorElementId& compositorElementId = CompositorElementId()) {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698