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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h

Issue 2751433002: [SPv2] Flatten property trees in PaintRecordBuilder into a single display list. (Closed)
Patch Set: none Created 3 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PaintPropertyTreeBuilder_h 5 #ifndef PaintPropertyTreeBuilder_h
6 #define PaintPropertyTreeBuilder_h 6 #define PaintPropertyTreeBuilder_h
7 7
8 #include "platform/geometry/LayoutPoint.h" 8 #include "platform/geometry/LayoutPoint.h"
9 #include "platform/graphics/paint/ClipPaintPropertyNode.h" 9 #include "platform/graphics/paint/ClipPaintPropertyNode.h"
10 #include "platform/graphics/paint/EffectPaintPropertyNode.h" 10 #include "platform/graphics/paint/EffectPaintPropertyNode.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 PaintPropertyTreeBuilderContext(); 94 PaintPropertyTreeBuilderContext();
95 }; 95 };
96 96
97 // Creates paint property tree nodes for special things in the layout tree. 97 // Creates paint property tree nodes for special things in the layout tree.
98 // Special things include but not limit to: overflow clip, transform, fixed-pos, 98 // Special things include but not limit to: overflow clip, transform, fixed-pos,
99 // animation, mask, filter, ... etc. 99 // animation, mask, filter, ... etc.
100 // It expects to be invoked for each layout tree node in DOM order during 100 // It expects to be invoked for each layout tree node in DOM order during
101 // InPrePaint phase. 101 // InPrePaint phase.
102 class PaintPropertyTreeBuilder { 102 class PaintPropertyTreeBuilder {
103 public: 103 public:
104 void setupInitialContext(PaintPropertyTreeBuilderContext&);
105 // Update the paint properties for a frame and ensure the context is up to 104 // Update the paint properties for a frame and ensure the context is up to
106 // date. 105 // date.
107 void updateProperties(FrameView&, PaintPropertyTreeBuilderContext&); 106 void updateProperties(FrameView&, PaintPropertyTreeBuilderContext&);
108 107
109 // Update the paint properties that affect this object (e.g., properties like 108 // Update the paint properties that affect this object (e.g., properties like
110 // paint offset translation) and ensure the context is up to date. Also 109 // paint offset translation) and ensure the context is up to date. Also
111 // handles updating the object's paintOffset. 110 // handles updating the object's paintOffset.
112 void updatePropertiesForSelf(const LayoutObject&, 111 void updatePropertiesForSelf(const LayoutObject&,
113 PaintPropertyTreeBuilderContext&); 112 PaintPropertyTreeBuilderContext&);
114 // Update the paint properties that affect children of this object (e.g., 113 // Update the paint properties that affect children of this object (e.g.,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 const LayoutObject&, 153 const LayoutObject&,
155 PaintPropertyTreeBuilderContext&); 154 PaintPropertyTreeBuilderContext&);
156 ALWAYS_INLINE static void updateOutOfFlowContext( 155 ALWAYS_INLINE static void updateOutOfFlowContext(
157 const LayoutObject&, 156 const LayoutObject&,
158 PaintPropertyTreeBuilderContext&); 157 PaintPropertyTreeBuilderContext&);
159 }; 158 };
160 159
161 } // namespace blink 160 } // namespace blink
162 161
163 #endif // PaintPropertyTreeBuilder_h 162 #endif // PaintPropertyTreeBuilder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698