| 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 { |
| 11 | 11 |
| 12 enum PaintInvalidationReason { | 12 enum PaintInvalidationReason { |
| 13 PaintInvalidationNone, | 13 PaintInvalidationNone, |
| 14 PaintInvalidationIncremental, | 14 PaintInvalidationIncremental, |
| 15 PaintInvalidationRectangle, | 15 PaintInvalidationRectangle, |
| 16 // The following reasons will all cause full invalidation of the RenderObjec
t. | 16 // The following reasons will all cause full invalidation of the LayoutObjec
t. |
| 17 PaintInvalidationFull, // Any unspecified reason of full invalidation. | 17 PaintInvalidationFull, // Any unspecified reason of full invalidation. |
| 18 PaintInvalidationStyleChange, | 18 PaintInvalidationStyleChange, |
| 19 PaintInvalidationForcedByLayout, | 19 PaintInvalidationForcedByLayout, |
| 20 PaintInvalidationCompositingUpdate, | 20 PaintInvalidationCompositingUpdate, |
| 21 PaintInvalidationBorderBoxChange, | 21 PaintInvalidationBorderBoxChange, |
| 22 PaintInvalidationBoundsChange, | 22 PaintInvalidationBoundsChange, |
| 23 PaintInvalidationLocationChange, | 23 PaintInvalidationLocationChange, |
| 24 PaintInvalidationBecameVisible, | 24 PaintInvalidationBecameVisible, |
| 25 PaintInvalidationBecameInvisible, | 25 PaintInvalidationBecameInvisible, |
| 26 PaintInvalidationScroll, | 26 PaintInvalidationScroll, |
| 27 PaintInvalidationSelection, | 27 PaintInvalidationSelection, |
| 28 PaintInvalidationLayer, | 28 PaintInvalidationLayer, |
| 29 PaintInvalidationRendererInsertion, | 29 PaintInvalidationRendererInsertion, |
| 30 PaintInvalidationRendererRemoval | 30 PaintInvalidationRendererRemoval |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 PLATFORM_EXPORT const char* paintInvalidationReasonToString(PaintInvalidationRea
son); | 33 PLATFORM_EXPORT const char* paintInvalidationReasonToString(PaintInvalidationRea
son); |
| 34 | 34 |
| 35 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) | 35 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) |
| 36 { | 36 { |
| 37 return reason >= PaintInvalidationFull; | 37 return reason >= PaintInvalidationFull; |
| 38 } | 38 } |
| 39 | 39 |
| 40 } // namespace blink | 40 } // namespace blink |
| 41 | 41 |
| 42 #endif // PaintInvalidationReason_h | 42 #endif // PaintInvalidationReason_h |
| OLD | NEW |