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

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

Issue 2662313003: Invalidate subsequence caching & empty paint phases if clips changed. (Closed)
Patch Set: Created 3 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
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/layout/ClipRect.h"
8 #include "core/paint/PaintInvalidator.h" 9 #include "core/paint/PaintInvalidator.h"
9 #include "core/paint/PaintPropertyTreeBuilder.h" 10 #include "core/paint/PaintPropertyTreeBuilder.h"
10 11
11 namespace blink { 12 namespace blink {
12 13
13 class FrameView; 14 class FrameView;
14 class GeometryMapper; 15 class GeometryMapper;
15 class LayoutObject; 16 class LayoutObject;
16 struct PrePaintTreeWalkContext; 17 struct PrePaintTreeWalkContext;
17 18
18 // This class walks the whole layout tree, beginning from the root FrameView, 19 // This class walks the whole layout tree, beginning from the root FrameView,
19 // across frame boundaries. Helper classes are called for each tree node to 20 // across frame boundaries. Helper classes are called for each tree node to
20 // perform actual actions. It expects to be invoked in InPrePaint phase. 21 // perform actual actions. It expects to be invoked in InPrePaint phase.
21 class PrePaintTreeWalk { 22 class PrePaintTreeWalk {
22 public: 23 public:
23 PrePaintTreeWalk(GeometryMapper& geometryMapper) 24 PrePaintTreeWalk(GeometryMapper& geometryMapper)
24 : m_paintInvalidator(geometryMapper) {} 25 : m_paintInvalidator(geometryMapper), m_geometryMapper(geometryMapper) {}
25 void walk(FrameView& rootFrame); 26 void walk(FrameView& rootFrame);
26 27
27 private: 28 private:
28 void walk(FrameView&, const PrePaintTreeWalkContext&); 29 void walk(FrameView&, const PrePaintTreeWalkContext&);
29 void walk(const LayoutObject&, const PrePaintTreeWalkContext&); 30 void walk(const LayoutObject&, const PrePaintTreeWalkContext&);
30 31
32 void invalidatePaintLayerProperties(
33 const LayoutObject&,
34 const PaintLayer& ancestorTransformedOrRootPaintLayer,
35 const PaintPropertyTreeBuilderContext&);
36
37 ClipRect clipRectForContext(
38 const PaintPropertyTreeBuilderContext::ContainingBlockContext&,
39 const EffectPaintPropertyNode*,
40 const PropertyTreeState& ancestorState,
41 const LayoutPoint& ancestorPaintOffset,
42 bool& hasClip);
43
31 PaintPropertyTreeBuilder m_propertyTreeBuilder; 44 PaintPropertyTreeBuilder m_propertyTreeBuilder;
32 PaintInvalidator m_paintInvalidator; 45 PaintInvalidator m_paintInvalidator;
46 GeometryMapper& m_geometryMapper;
33 }; 47 };
34 48
35 } // namespace blink 49 } // namespace blink
36 50
37 #endif // PrePaintTreeWalk_h 51 #endif // PrePaintTreeWalk_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698