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 30 matching lines...) Expand all Loading... |
41 PaintInvalidationReasonMax = PaintInvalidationDelayedFull | 41 PaintInvalidationReasonMax = PaintInvalidationDelayedFull |
42 }; | 42 }; |
43 | 43 |
44 PLATFORM_EXPORT const char* paintInvalidationReasonToString(PaintInvalidationRea
son); | 44 PLATFORM_EXPORT const char* paintInvalidationReasonToString(PaintInvalidationRea
son); |
45 | 45 |
46 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) | 46 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) |
47 { | 47 { |
48 return reason >= PaintInvalidationFull; | 48 return reason >= PaintInvalidationFull; |
49 } | 49 } |
50 | 50 |
| 51 inline bool isImmediateFullPaintInvalidationReason(PaintInvalidationReason reaso
n) |
| 52 { |
| 53 return isFullPaintInvalidationReason(reason) && reason != PaintInvalidationD
elayedFull; |
| 54 } |
| 55 |
51 } // namespace blink | 56 } // namespace blink |
52 | 57 |
53 #endif // PaintInvalidationReason_h | 58 #endif // PaintInvalidationReason_h |
OLD | NEW |