| 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 27 matching lines...) Expand all Loading... |
| 38 virtual void mapLocalRectToPaintInvalidationBacking(const LayoutObject&, | 38 virtual void mapLocalRectToPaintInvalidationBacking(const LayoutObject&, |
| 39 LayoutRect&) const; | 39 LayoutRect&) const; |
| 40 | 40 |
| 41 const PaintPropertyTreeBuilderContext& treeBuilderContext; | 41 const PaintPropertyTreeBuilderContext& treeBuilderContext; |
| 42 | 42 |
| 43 enum ForcedSubtreeInvalidationFlag { | 43 enum ForcedSubtreeInvalidationFlag { |
| 44 ForcedSubtreeInvalidationChecking = 1 << 0, | 44 ForcedSubtreeInvalidationChecking = 1 << 0, |
| 45 ForcedSubtreeInvalidationRectUpdate = 1 << 1, | 45 ForcedSubtreeInvalidationRectUpdate = 1 << 1, |
| 46 ForcedSubtreeFullInvalidation = 1 << 2, | 46 ForcedSubtreeFullInvalidation = 1 << 2, |
| 47 ForcedSubtreeFullInvalidationForStackedContents = 1 << 3, | 47 ForcedSubtreeFullInvalidationForStackedContents = 1 << 3, |
| 48 ForcedSubtreeSVGResourceChange = 1 << 4, |
| 48 // TODO(crbug.com/637313): This is temporary before we support filters in | 49 // TODO(crbug.com/637313): This is temporary before we support filters in |
| 49 // paint property tree. | 50 // paint property tree. |
| 50 ForcedSubtreeSlowPathRect = 1 << 4, | 51 ForcedSubtreeSlowPathRect = 1 << 5, |
| 51 }; | 52 }; |
| 52 unsigned forcedSubtreeInvalidationFlags = 0; | 53 unsigned forcedSubtreeInvalidationFlags = 0; |
| 53 | 54 |
| 54 // The following fields can be null only before | 55 // The following fields can be null only before |
| 55 // PaintInvalidator::updateContext(). | 56 // PaintInvalidator::updateContext(). |
| 56 | 57 |
| 57 // The current paint invalidation container for normal flow objects. | 58 // The current paint invalidation container for normal flow objects. |
| 58 // It is the enclosing composited object. | 59 // It is the enclosing composited object. |
| 59 const LayoutBoxModelObject* paintInvalidationContainer = nullptr; | 60 const LayoutBoxModelObject* paintInvalidationContainer = nullptr; |
| 60 | 61 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&); | 105 void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&); |
| 105 void updateContext(const LayoutObject&, PaintInvalidatorContext&); | 106 void updateContext(const LayoutObject&, PaintInvalidatorContext&); |
| 106 | 107 |
| 107 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations; | 108 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations; |
| 108 GeometryMapper m_geometryMapper; | 109 GeometryMapper m_geometryMapper; |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 } // namespace blink | 112 } // namespace blink |
| 112 | 113 |
| 113 #endif // PaintInvalidator_h | 114 #endif // PaintInvalidator_h |
| OLD | NEW |