OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 PaintInvalidationReason_h | 5 #ifndef PaintInvalidationReason_h |
6 #define PaintInvalidationReason_h | 6 #define PaintInvalidationReason_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 10 matching lines...) Expand all Loading... |
21 PaintInvalidationBorderBoxChange, | 21 PaintInvalidationBorderBoxChange, |
22 PaintInvalidationContentBoxChange, | 22 PaintInvalidationContentBoxChange, |
23 PaintInvalidationLayoutOverflowBoxChange, | 23 PaintInvalidationLayoutOverflowBoxChange, |
24 PaintInvalidationBoundsChange, | 24 PaintInvalidationBoundsChange, |
25 PaintInvalidationLocationChange, | 25 PaintInvalidationLocationChange, |
26 PaintInvalidationBackgroundObscurationChange, | 26 PaintInvalidationBackgroundObscurationChange, |
27 PaintInvalidationBecameVisible, | 27 PaintInvalidationBecameVisible, |
28 PaintInvalidationBecameInvisible, | 28 PaintInvalidationBecameInvisible, |
29 PaintInvalidationScroll, | 29 PaintInvalidationScroll, |
30 PaintInvalidationSelection, | 30 PaintInvalidationSelection, |
31 PaintInvalidationFocusRing, | 31 PaintInvalidationOutline, |
32 PaintInvalidationLayer, | 32 PaintInvalidationLayer, |
33 PaintInvalidationLayoutObjectInsertion, | 33 PaintInvalidationLayoutObjectInsertion, |
34 PaintInvalidationLayoutObjectRemoval, | 34 PaintInvalidationLayoutObjectRemoval, |
35 // PaintInvalidationDelayedFull means that PaintInvalidationFull is needed i
n order to fully paint | 35 // PaintInvalidationDelayedFull means that PaintInvalidationFull is needed i
n order to fully paint |
36 // the content, but that painting of the object can be delayed until a futur
e frame. | 36 // the content, but that painting of the object can be delayed until a futur
e frame. |
37 // This can be the case for an object whose content is not visible to the us
er. | 37 // This can be the case for an object whose content is not visible to the us
er. |
38 PaintInvalidationDelayedFull | 38 PaintInvalidationDelayedFull |
39 }; | 39 }; |
40 | 40 |
41 PLATFORM_EXPORT const char* paintInvalidationReasonToString(PaintInvalidationRea
son); | 41 PLATFORM_EXPORT const char* paintInvalidationReasonToString(PaintInvalidationRea
son); |
42 | 42 |
43 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) | 43 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) |
44 { | 44 { |
45 return reason >= PaintInvalidationFull; | 45 return reason >= PaintInvalidationFull; |
46 } | 46 } |
47 | 47 |
48 } // namespace blink | 48 } // namespace blink |
49 | 49 |
50 #endif // PaintInvalidationReason_h | 50 #endif // PaintInvalidationReason_h |
OLD | NEW |