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

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

Issue 2792063002: Reland of Skip paint property update and visual rect update if no geometry change (Closed)
Patch Set: Rebase 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 PrePaintTreeWalk_h 5 #ifndef PrePaintTreeWalk_h
6 #define PrePaintTreeWalk_h 6 #define PrePaintTreeWalk_h
7 7
8 #include "core/paint/ClipRect.h" 8 #include "core/paint/ClipRect.h"
9 #include "core/paint/PaintInvalidator.h" 9 #include "core/paint/PaintInvalidator.h"
10 #include "core/paint/PaintPropertyTreeBuilder.h" 10 #include "core/paint/PaintPropertyTreeBuilder.h"
(...skipping 26 matching lines...) Expand all
37 // Returns in |clipRect| the clip applied to children for the given 37 // Returns in |clipRect| the clip applied to children for the given
38 // contaiing block context + effect, in the space of ancestorState adjusted 38 // contaiing block context + effect, in the space of ancestorState adjusted
39 // by ancestorPaintOffset. 39 // by ancestorPaintOffset.
40 ALWAYS_INLINE void computeClipRectForContext( 40 ALWAYS_INLINE void computeClipRectForContext(
41 const PaintPropertyTreeBuilderContext::ContainingBlockContext&, 41 const PaintPropertyTreeBuilderContext::ContainingBlockContext&,
42 const EffectPaintPropertyNode*, 42 const EffectPaintPropertyNode*,
43 const PropertyTreeState& ancestorState, 43 const PropertyTreeState& ancestorState,
44 const LayoutPoint& ancestorPaintOffset, 44 const LayoutPoint& ancestorPaintOffset,
45 FloatClipRect&); 45 FloatClipRect&);
46 46
47 // Returns true if the tree walk should stop before processing this object. 47 bool ALWAYS_INLINE
48 bool shouldEndWalkBefore(const LayoutObject&, const PrePaintTreeWalkContext&); 48 needsTreeBuilderContextUpdate(const FrameView&,
49 const PrePaintTreeWalkContext&);
50 bool ALWAYS_INLINE
51 needsTreeBuilderContextUpdate(const LayoutObject&,
52 const PrePaintTreeWalkContext&);
49 53
50 PaintPropertyTreeBuilder m_propertyTreeBuilder; 54 PaintPropertyTreeBuilder m_propertyTreeBuilder;
51 PaintInvalidator m_paintInvalidator; 55 PaintInvalidator m_paintInvalidator;
52 }; 56 };
53 57
54 } // namespace blink 58 } // namespace blink
55 59
56 #endif // PrePaintTreeWalk_h 60 #endif // PrePaintTreeWalk_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698