| 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 mapLocalRectToPaintInvalidationBacking( | |
| 100 const LayoutObject&, | |
| 101 const FloatRect&, | |
| 102 const PaintInvalidatorContext&); | |
| 103 LayoutRect computeVisualRectInBacking(const LayoutObject&, | 99 LayoutRect computeVisualRectInBacking(const LayoutObject&, |
| 104 const PaintInvalidatorContext&); | 100 const PaintInvalidatorContext&); |
| 105 LayoutPoint computeLocationInBacking(const LayoutObject&, | 101 LayoutPoint computeLocationInBacking(const LayoutObject&, |
| 106 const PaintInvalidatorContext&); | 102 const PaintInvalidatorContext&); |
| 107 void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&); | 103 void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&); |
| 108 void updateContext(const LayoutObject&, PaintInvalidatorContext&); | 104 void updateContext(const LayoutObject&, PaintInvalidatorContext&); |
| 109 | 105 |
| 110 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations; | 106 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations; |
| 111 GeometryMapper m_geometryMapper; | 107 GeometryMapper m_geometryMapper; |
| 112 }; | 108 }; |
| 113 | 109 |
| 114 } // namespace blink | 110 } // namespace blink |
| 115 | 111 |
| 116 #endif // PaintInvalidator_h | 112 #endif // PaintInvalidator_h |
| OLD | NEW |