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 ObjectPaintInvalidator_h | 5 #ifndef ObjectPaintInvalidator_h |
6 #define ObjectPaintInvalidator_h | 6 #define ObjectPaintInvalidator_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "platform/graphics/PaintInvalidationReason.h" | 9 #include "platform/graphics/PaintInvalidationReason.h" |
10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 const LayoutBoxModelObject& paintInvalidationContainer, | 47 const LayoutBoxModelObject& paintInvalidationContainer, |
48 PaintInvalidationReason); | 48 PaintInvalidationReason); |
49 | 49 |
50 // The caller should ensure the painting layer has been setNeedsRepaint before | 50 // The caller should ensure the painting layer has been setNeedsRepaint before |
51 // calling this function. | 51 // calling this function. |
52 void invalidateDisplayItemClient(const DisplayItemClient&, | 52 void invalidateDisplayItemClient(const DisplayItemClient&, |
53 PaintInvalidationReason); | 53 PaintInvalidationReason); |
54 | 54 |
55 // Actually do the paint invalidate of rect r for this object which has been | 55 // Actually do the paint invalidate of rect r for this object which has been |
56 // computed in the coordinate space of the GraphicsLayer backing of | 56 // computed in the coordinate space of the GraphicsLayer backing of |
57 // |paintInvalidationContainer|. Note that this coordinaten space is not the | 57 // |paintInvalidationContainer|. Note that this coordinate space is not the |
58 // same as the local coordinate space of |paintInvalidationContainer| in the | 58 // same as the local coordinate space of |paintInvalidationContainer| in the |
59 // presence of layer squashing. | 59 // presence of layer squashing. |
60 void invalidatePaintUsingContainer( | 60 void invalidatePaintUsingContainer( |
61 const LayoutBoxModelObject& paintInvalidationContainer, | 61 const LayoutBoxModelObject& paintInvalidationContainer, |
62 const LayoutRect&, | 62 const LayoutRect&, |
63 PaintInvalidationReason); | 63 PaintInvalidationReason); |
64 | 64 |
65 // Invalidate the paint of a specific subrectangle within a given object. The | 65 // Invalidate the paint of a specific subrectangle within a given object. The |
66 // rect is in the object's coordinate space. If a DisplayItemClient is | 66 // rect is in the object's coordinate space. If a DisplayItemClient is |
67 // specified, that client is invalidated rather than |m_object|. | 67 // specified, that client is invalidated rather than |m_object|. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 public: | 133 public: |
134 DisablePaintInvalidationStateAsserts(); | 134 DisablePaintInvalidationStateAsserts(); |
135 | 135 |
136 private: | 136 private: |
137 AutoReset<bool> m_disabler; | 137 AutoReset<bool> m_disabler; |
138 }; | 138 }; |
139 | 139 |
140 } // namespace blink | 140 } // namespace blink |
141 | 141 |
142 #endif | 142 #endif |
OLD | NEW |