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 DisplayListCompositingBuilder_h | 5 #ifndef DisplayListCompositingBuilder_h |
6 #define DisplayListCompositingBuilder_h | 6 #define DisplayListCompositingBuilder_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/graphics/CompositedDisplayList.h" |
9 #include "platform/graphics/paint/DisplayItemList.h" | 10 #include "platform/graphics/paint/DisplayItemList.h" |
10 #include "platform/graphics/paint/DisplayItemTransformTree.h" | |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 struct CompositedDisplayList { | |
15 // TODO(pdr): Also add our SimpleLayers here. | |
16 // TODO(pdr): Add the additional property trees (e.g., clip, scroll, etc). | |
17 OwnPtr<const DisplayItemTransformTree> transformTree; | |
18 }; | |
19 | |
20 class CORE_EXPORT DisplayListCompositingBuilder { | 14 class CORE_EXPORT DisplayListCompositingBuilder { |
21 public: | 15 public: |
22 DisplayListCompositingBuilder(const DisplayItemList& displayItemList, const
DisplayListDiff&) | 16 DisplayListCompositingBuilder(const DisplayItemList& displayItemList, const
DisplayListDiff&) |
23 : m_displayItemList(displayItemList) { } | 17 : m_displayItemList(displayItemList) { } |
24 | 18 |
25 void build(CompositedDisplayList&); | 19 void build(CompositedDisplayList&); |
26 | 20 |
27 private: | 21 private: |
28 const DisplayItemList& m_displayItemList; | 22 const DisplayItemList& m_displayItemList; |
29 }; | 23 }; |
30 | 24 |
31 } // namespace blink | 25 } // namespace blink |
32 | 26 |
33 #endif // DisplayListCompositingBuilder_h | 27 #endif // DisplayListCompositingBuilder_h |
OLD | NEW |