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 15 matching lines...) Expand all Loading... |
26 PaintInvalidationBackgroundObscurationChange, | 26 PaintInvalidationBackgroundObscurationChange, |
27 PaintInvalidationBecameVisible, | 27 PaintInvalidationBecameVisible, |
28 PaintInvalidationBecameInvisible, | 28 PaintInvalidationBecameInvisible, |
29 PaintInvalidationScroll, | 29 PaintInvalidationScroll, |
30 PaintInvalidationSelection, | 30 PaintInvalidationSelection, |
31 PaintInvalidationOutline, | 31 PaintInvalidationOutline, |
32 PaintInvalidationSubtree, | 32 PaintInvalidationSubtree, |
33 PaintInvalidationLayoutObjectInsertion, | 33 PaintInvalidationLayoutObjectInsertion, |
34 PaintInvalidationLayoutObjectRemoval, | 34 PaintInvalidationLayoutObjectRemoval, |
35 PaintInvalidationSVGResourceChange, | 35 PaintInvalidationSVGResourceChange, |
| 36 PaintInvalidationBackgroundOnScrollingContentsLayer, |
36 PaintInvalidationForTesting, | 37 PaintInvalidationForTesting, |
37 // PaintInvalidationDelayedFull means that PaintInvalidationFull is needed in | 38 // PaintInvalidationDelayedFull means that PaintInvalidationFull is needed in |
38 // order to fully paint the content, but that painting of the object can be | 39 // order to fully paint the content, but that painting of the object can be |
39 // delayed until a future frame. This can be the case for an object whose | 40 // delayed until a future frame. This can be the case for an object whose |
40 // content is not visible to the user. | 41 // content is not visible to the user. |
41 PaintInvalidationDelayedFull, | 42 PaintInvalidationDelayedFull, |
42 | 43 |
43 PaintInvalidationReasonMax = PaintInvalidationDelayedFull | 44 PaintInvalidationReasonMax = PaintInvalidationDelayedFull |
44 }; | 45 }; |
45 | 46 |
46 PLATFORM_EXPORT const char* paintInvalidationReasonToString( | 47 PLATFORM_EXPORT const char* paintInvalidationReasonToString( |
47 PaintInvalidationReason); | 48 PaintInvalidationReason); |
48 | 49 |
49 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) { | 50 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) { |
50 return reason >= PaintInvalidationFull; | 51 return reason >= PaintInvalidationFull; |
51 } | 52 } |
52 | 53 |
53 inline bool isImmediateFullPaintInvalidationReason( | 54 inline bool isImmediateFullPaintInvalidationReason( |
54 PaintInvalidationReason reason) { | 55 PaintInvalidationReason reason) { |
55 return isFullPaintInvalidationReason(reason) && | 56 return isFullPaintInvalidationReason(reason) && |
56 reason != PaintInvalidationDelayedFull; | 57 reason != PaintInvalidationDelayedFull; |
57 } | 58 } |
58 | 59 |
59 } // namespace blink | 60 } // namespace blink |
60 | 61 |
61 #endif // PaintInvalidationReason_h | 62 #endif // PaintInvalidationReason_h |
OLD | NEW |