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

Side by Side Diff: Source/core/paint/SubtreeRecorder.h

Issue 892293002: First version of new merge algorithm (not enabled yet) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase again again Created 5 years, 10 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
« no previous file with comments | « Source/core/paint/RenderDrawingRecorderTest.cpp ('k') | Source/core/paint/SubtreeRecorder.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 SubtreeRecorder_h
6 #define SubtreeRecorder_h
7
8 #include "core/rendering/PaintPhase.h"
9 #include "wtf/PassOwnPtr.h"
10
11 namespace blink {
12
13 class DisplayItem;
14 class DisplayItemList;
15 class GraphicsContext;
16 class LayoutObject;
17
18 // Records subtree information during painting. The recorder's life span covers
19 // all painting operations executed during the root of the subtree's paint metho d
20 // for the paint phase.
21 class SubtreeRecorder {
22 public:
23 SubtreeRecorder(GraphicsContext*, const LayoutObject& root, PaintPhase);
24
25 ~SubtreeRecorder();
26
27 // This method should be called before we actually paint the subtree, then w e'll
28 // issue a pair of BeginSubtree/EndSubtree display items to enclose all disp lay
29 // items when we paint the subtree.
30 // Omit this call if we skip painting of the whole subtree (when e.g. the su btree
31 // is out of the viewport, or the whole subtree is not invalidated), then we 'll
32 // issue a SubtreeCached display item.
33 void begin();
34
35 private:
36 void addDisplayItem(PassOwnPtr<DisplayItem>);
37
38 DisplayItemList* m_displayItemList;
39 const LayoutObject& m_subtreeRoot;
40 const PaintPhase m_paintPhase;
41 bool m_begun;
42 };
43
44 } // namespace blink
45
46 #endif // SubtreeRecorder_h
OLDNEW
« no previous file with comments | « Source/core/paint/RenderDrawingRecorderTest.cpp ('k') | Source/core/paint/SubtreeRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698