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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ForcedSubtreeSVGResourceChange = 1 << 4, |
49 // 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 |
50 // paint property tree. | 50 // paint property tree. |
51 ForcedSubtreeSlowPathRect = 1 << 5, | 51 ForcedSubtreeSlowPathRect = 1 << 5, |
52 // For SPv1, all of the above flags don't cross paint invalidation container | |
53 // boundary. ForceWholeTreeFullInvalidation does. | |
54 // TODO(wangxianzhu): Combine this with ForcedSubtreeFullInvalidation when | |
55 // removing non-SPv2 code. | |
56 ForcedWholeTreeFullInvalidation = 1 << 6, | |
57 }; | 52 }; |
58 unsigned forcedSubtreeInvalidationFlags = 0; | 53 unsigned forcedSubtreeInvalidationFlags = 0; |
59 | 54 |
60 // The following fields can be null only before | 55 // The following fields can be null only before |
61 // PaintInvalidator::updateContext(). | 56 // PaintInvalidator::updateContext(). |
62 | 57 |
63 // The current paint invalidation container for normal flow objects. | 58 // The current paint invalidation container for normal flow objects. |
64 // It is the enclosing composited object. | 59 // It is the enclosing composited object. |
65 const LayoutBoxModelObject* paintInvalidationContainer = nullptr; | 60 const LayoutBoxModelObject* paintInvalidationContainer = nullptr; |
66 | 61 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&); | 110 void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&); |
116 void updateContext(const LayoutObject&, PaintInvalidatorContext&); | 111 void updateContext(const LayoutObject&, PaintInvalidatorContext&); |
117 | 112 |
118 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations; | 113 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations; |
119 GeometryMapper m_geometryMapper; | 114 GeometryMapper m_geometryMapper; |
120 }; | 115 }; |
121 | 116 |
122 } // namespace blink | 117 } // namespace blink |
123 | 118 |
124 #endif // PaintInvalidator_h | 119 #endif // PaintInvalidator_h |
OLD | NEW |