OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef DisplayListCompositingBuilder_h |
| 6 #define DisplayListCompositingBuilder_h |
| 7 |
| 8 #include "platform/graphics/GraphicsLayer.h" |
| 9 #include "platform/graphics/paint/DisplayItemList.h" |
| 10 #include "platform/graphics/paint/DisplayItemTransformTree.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 struct CompositedDisplayList { |
| 15 WTF_MAKE_NONCOPYABLE(CompositedDisplayList); |
| 16 WTF_MAKE_FAST_ALLOCATED(CompositedDisplayList); |
| 17 public: |
| 18 CompositedDisplayList(const DisplayItemList& displayItemList, const DisplayL
istDiff& displayListDiff, GraphicsLayer& rootGraphicsLayer) |
| 19 : m_displayItemList(displayItemList) |
| 20 , m_displayListDiff(displayListDiff) |
| 21 , m_rootGraphicsLayer(rootGraphicsLayer) { } |
| 22 |
| 23 const DisplayItemList& m_displayItemList; |
| 24 const DisplayListDiff& m_displayListDiff; |
| 25 GraphicsLayer& m_rootGraphicsLayer; |
| 26 }; |
| 27 |
| 28 class DisplayListCompositingBuilder { |
| 29 public: |
| 30 DisplayListCompositingBuilder(CompositedDisplayList& compositedDisplayList) |
| 31 : m_compositedDisplayList(compositedDisplayList) {} |
| 32 |
| 33 void build(); |
| 34 |
| 35 private: |
| 36 CompositedDisplayList& m_compositedDisplayList; |
| 37 }; |
| 38 |
| 39 } // namespace blink |
| 40 |
| 41 #endif // DisplayListCompositingBuilder_h |
OLD | NEW |