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

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

Issue 1390933003: Implement the framework for the paint property hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 DisplayItemTransformTree_h 5 #ifndef DisplayItemTransformTree_h
6 #define DisplayItemTransformTree_h 6 #define DisplayItemTransformTree_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"
11 #include "public/platform/WebDisplayItemTransformTree.h" 11 #include "public/platform/WebDisplayItemTransformTree.h"
12 #include "wtf/Vector.h" 12 #include "wtf/Vector.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 // Represents the hierarchy of transforms which apply to ranges of a display 16 // Represents the hierarchy of transforms which apply to ranges of a display
17 // item list and may be of interest to the compositor. 17 // item list and may be of interest to the compositor.
18 // 18 //
19 // This class is also the private implementation of WebDisplayItemTransformTree. 19 // This class is also the private implementation of WebDisplayItemTransformTree.
20 // For more detail, see WebDisplayItemTransformTree.h. 20 // For more detail, see WebDisplayItemTransformTree.h.
21 // TODO(pdr): Refactor this into TransformPaintProperty.
jbroman 2015/10/07 15:22:22 Yeah, we'll have to see how this evolves.
21 class PLATFORM_EXPORT DisplayItemTransformTree { 22 class PLATFORM_EXPORT DisplayItemTransformTree {
22 public: 23 public:
23 using TransformNode = WebDisplayItemTransformTree::TransformNode; 24 using TransformNode = WebDisplayItemTransformTree::TransformNode;
24 enum : size_t { kInvalidIndex = WebDisplayItemTransformTree::kInvalidIndex } ; 25 enum : size_t { kInvalidIndex = WebDisplayItemTransformTree::kInvalidIndex } ;
25 26
26 DisplayItemTransformTree(); 27 DisplayItemTransformTree();
27 ~DisplayItemTransformTree(); 28 ~DisplayItemTransformTree();
28 29
29 size_t nodeCount() const { return m_nodes.size(); } 30 size_t nodeCount() const { return m_nodes.size(); }
30 TransformNode& nodeAt(size_t index) { return m_nodes[index]; } 31 TransformNode& nodeAt(size_t index) { return m_nodes[index]; }
(...skipping 10 matching lines...) Expand all
41 return m_nodes.size() - 1; 42 return m_nodes.size() - 1;
42 } 43 }
43 44
44 private: 45 private:
45 Vector<TransformNode> m_nodes; 46 Vector<TransformNode> m_nodes;
46 }; 47 };
47 48
48 } // namespace blink 49 } // namespace blink
49 50
50 #endif // DisplayItemTransformTree_h 51 #endif // DisplayItemTransformTree_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698