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

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

Issue 2640863003: Inline PrePaintTreeWalk private methods and static functions (Closed)
Patch Set: ALWAYS_INLINE Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 PaintInvalidator_h 5 #ifndef PaintInvalidator_h
6 #define PaintInvalidator_h 6 #define PaintInvalidator_h
7 7
8 #include "platform/geometry/LayoutRect.h" 8 #include "platform/geometry/LayoutRect.h"
9 #include "platform/graphics/paint/GeometryMapper.h" 9 #include "platform/graphics/paint/GeometryMapper.h"
10 #include "wtf/Vector.h" 10 #include "wtf/Vector.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 class PaintInvalidator { 87 class PaintInvalidator {
88 public: 88 public:
89 void invalidatePaintIfNeeded(FrameView&, PaintInvalidatorContext&); 89 void invalidatePaintIfNeeded(FrameView&, PaintInvalidatorContext&);
90 void invalidatePaintIfNeeded(const LayoutObject&, PaintInvalidatorContext&); 90 void invalidatePaintIfNeeded(const LayoutObject&, PaintInvalidatorContext&);
91 91
92 // Process objects needing paint invalidation on the next frame. 92 // Process objects needing paint invalidation on the next frame.
93 // See the definition of PaintInvalidationDelayedFull for more details. 93 // See the definition of PaintInvalidationDelayedFull for more details.
94 void processPendingDelayedPaintInvalidations(); 94 void processPendingDelayedPaintInvalidations();
95 95
96 private: 96 private:
97 LayoutRect computeVisualRectInBacking(const LayoutObject&, 97 ALWAYS_INLINE LayoutRect
98 const PaintInvalidatorContext&); 98 computeVisualRectInBacking(const LayoutObject&,
99 LayoutPoint computeLocationInBacking(const LayoutObject&, 99 const PaintInvalidatorContext&);
100 const PaintInvalidatorContext&); 100 ALWAYS_INLINE LayoutPoint
101 void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&); 101 computeLocationInBacking(const LayoutObject&, const PaintInvalidatorContext&);
102 void updateContext(const LayoutObject&, PaintInvalidatorContext&); 102 ALWAYS_INLINE void updatePaintingLayer(const LayoutObject&,
103 PaintInvalidatorContext&);
104 ALWAYS_INLINE void updateContext(const LayoutObject&,
105 PaintInvalidatorContext&);
103 106
104 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations; 107 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations;
105 GeometryMapper m_geometryMapper; 108 GeometryMapper m_geometryMapper;
106 }; 109 };
107 110
108 } // namespace blink 111 } // namespace blink
109 112
110 #endif // PaintInvalidator_h 113 #endif // PaintInvalidator_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698