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

Side by Side Diff: Source/core/compositing/DisplayListCompositingBuilder.h

Issue 1238123004: Slimming Paint phase 2 compositing algorithm plumbing & skeleton display list API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
OLDNEW
(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
OLDNEW
« no previous file with comments | « no previous file | Source/core/compositing/DisplayListCompositingBuilder.cpp » ('j') | public/platform/WebDisplayList.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698