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

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

Issue 2699593006: Refactor to remove need for infiniteIntRect when computing rects in pre-paint (Closed)
Patch Set: none 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/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 22 matching lines...) Expand all
33 // subsequence caching and empty paint phase optimizations, 33 // subsequence caching and empty paint phase optimizations,
34 // if clips from the context have changed. 34 // if clips from the context have changed.
35 void invalidatePaintLayerOptimizationsIfNeeded( 35 void invalidatePaintLayerOptimizationsIfNeeded(
36 const LayoutObject&, 36 const LayoutObject&,
37 const PaintLayer& ancestorTransformedOrRootPaintLayer, 37 const PaintLayer& ancestorTransformedOrRootPaintLayer,
38 PaintPropertyTreeBuilderContext&); 38 PaintPropertyTreeBuilderContext&);
39 39
40 // Returns the clip applied to children for the given 40 // Returns the clip applied to children for the given
41 // contaiing block context + effect, in the space of ancestorState adjusted 41 // contaiing block context + effect, in the space of ancestorState adjusted
42 // by ancestorPaintOffset. Sets hasClip to true if a clip was applied. 42 // by ancestorPaintOffset. Sets hasClip to true if a clip was applied.
43 ClipRect clipRectForContext( 43 FloatClipRect clipRectForContext(
44 const PaintPropertyTreeBuilderContext::ContainingBlockContext&, 44 const PaintPropertyTreeBuilderContext::ContainingBlockContext&,
45 const EffectPaintPropertyNode*, 45 const EffectPaintPropertyNode*,
46 const PropertyTreeState& ancestorState, 46 const PropertyTreeState& ancestorState,
47 const LayoutPoint& ancestorPaintOffset, 47 const LayoutPoint& ancestorPaintOffset,
48 bool& hasClip); 48 bool& hasClip);
49 49
50 PaintPropertyTreeBuilder m_propertyTreeBuilder; 50 PaintPropertyTreeBuilder m_propertyTreeBuilder;
51 PaintInvalidator m_paintInvalidator; 51 PaintInvalidator m_paintInvalidator;
52 GeometryMapper& m_geometryMapper; 52 GeometryMapper& m_geometryMapper;
53 }; 53 };
54 54
55 } // namespace blink 55 } // namespace blink
56 56
57 #endif // PrePaintTreeWalk_h 57 #endif // PrePaintTreeWalk_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/ClipRect.h ('k') | third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698