| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 void invalidatePaintIfNeeded(FrameView&, PaintInvalidatorContext&); | 89 void invalidatePaintIfNeeded(FrameView&, PaintInvalidatorContext&); |
| 90 void invalidatePaintIfNeeded(const LayoutObject&, | 90 void invalidatePaintIfNeeded(const LayoutObject&, |
| 91 const LayoutPoint& oldPaintOffset, | 91 const LayoutPoint& oldPaintOffset, |
| 92 PaintInvalidatorContext&); | 92 PaintInvalidatorContext&); |
| 93 | 93 |
| 94 // Process objects needing paint invalidation on the next frame. | 94 // Process objects needing paint invalidation on the next frame. |
| 95 // See the definition of PaintInvalidationDelayedFull for more details. | 95 // See the definition of PaintInvalidationDelayedFull for more details. |
| 96 void processPendingDelayedPaintInvalidations(); | 96 void processPendingDelayedPaintInvalidations(); |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 LayoutRect computeVisualRectInBacking(const LayoutObject&, | 99 inline LayoutRect computeVisualRectInBacking(const LayoutObject&, |
| 100 const PaintInvalidatorContext&); | 100 const PaintInvalidatorContext&); |
| 101 LayoutPoint computeLocationInBacking(const LayoutObject&, | 101 inline LayoutPoint computeLocationInBacking(const LayoutObject&, |
| 102 const PaintInvalidatorContext&); | 102 const PaintInvalidatorContext&); |
| 103 void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&); | 103 inline void updatePaintingLayer(const LayoutObject&, |
| 104 void updateContext(const LayoutObject&, PaintInvalidatorContext&); | 104 PaintInvalidatorContext&); |
| 105 inline void updateContext(const LayoutObject&, PaintInvalidatorContext&); |
| 105 | 106 |
| 106 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations; | 107 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations; |
| 107 GeometryMapper m_geometryMapper; | 108 GeometryMapper m_geometryMapper; |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 } // namespace blink | 111 } // namespace blink |
| 111 | 112 |
| 112 #endif // PaintInvalidator_h | 113 #endif // PaintInvalidator_h |
| OLD | NEW |