OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 "core/CoreExport.h" |
| 9 #include "platform/graphics/GraphicsLayer.h" |
| 10 #include "platform/graphics/paint/DisplayItemList.h" |
| 11 #include "platform/graphics/paint/DisplayItemTransformTree.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class DisplayListCompositingBuilder { |
| 16 public: |
| 17 // The arguments to this method are the current frame's display list, the di
ff from the previous frame's display list, the graphics layer at the root of the |
| 18 // tree for this web view, and the property trees for the previous frame. |
| 19 DisplayListCompositingBuilder(const DisplayItemList& displayItemList, const
DisplayListDiff& displayListDiff, GraphicsLayer& rootGraphicsLayer) |
| 20 : m_displayItemList(displayItemList), m_displayListDiff(displayListDiff) |
| 21 , m_rootGraphicsLayer(rootGraphicsLayer) |
| 22 { } |
| 23 |
| 24 // The effect of this method is an updated graphics layer tree (still rooted
at |rootGraphicsLayer|), and property trees. |
| 25 // For graphics layers which are preserved across the update, raster invalid
ations are registered on them (via setNeedsDisplayInRect or setNeedsDisplay). |
| 26 void build(); |
| 27 |
| 28 private: |
| 29 void buildGraphicsLayerTree(); |
| 30 |
| 31 const DisplayItemList& m_displayItemList; |
| 32 const DisplayListDiff& m_displayListDiff; |
| 33 GraphicsLayer& m_rootGraphicsLayer; |
| 34 OwnPtr<DisplayItemTransformTree> m_transformTree; |
| 35 }; |
| 36 |
| 37 } // namespace blink |
| 38 |
| 39 #endif // DisplayListCompositingBuilder_h |
OLD | NEW |