| 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 #include "public/platform/WebDisplayList.h" |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 class DisplayListCompositingBuilder { |
| 17 public: |
| 18 // 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 |
| 19 // tree for this web view, and the property trees for the previous frame. |
| 20 DisplayListCompositingBuilder(const DisplayItemList& displayList, const WebD
isplayListDiff& displayListDiff, GraphicsLayer& rootGraphicsLayer) |
| 21 : m_displayList(displayList), m_displayListDiff(displayListDiff) |
| 22 , m_rootGraphicsLayer(rootGraphicsLayer) |
| 23 { } |
| 24 |
| 25 // The effect of this method is an updated graphics layer tree (still rooted
at |rootGraphicsLayer|), and property trees (call releaseTransformTre()). |
| 26 // For graphics layers which are preserved across the update, raster invalid
ations are registered on them (via setNeedsDisplayInRect or setNeedsDisplay). |
| 27 void build(); |
| 28 |
| 29 private: |
| 30 void buildGraphicsLayerTree(); |
| 31 |
| 32 const DisplayItemList& m_displayList; |
| 33 const WebDisplayListDiff& m_displayListDiff; |
| 34 GraphicsLayer& m_rootGraphicsLayer; |
| 35 OwnPtr<DisplayItemTransformTree> m_transformTree; |
| 36 }; |
| 37 |
| 38 } // namespace blink |
| 39 |
| 40 #endif // DisplayListCompositingBuilder_h |
| OLD | NEW |