OLD | NEW |
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 Loading... |
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 |
OLD | NEW |