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 #include "platform/graphics/PaintInvalidationReason.h" | 5 #include "platform/graphics/PaintInvalidationReason.h" |
6 | 6 |
7 #include "wtf/Assertions.h" | 7 #include "wtf/Assertions.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
11 const char* paintInvalidationReasonToString(PaintInvalidationReason reason) | 11 const char* paintInvalidationReasonToString(PaintInvalidationReason reason) |
12 { | 12 { |
13 switch (reason) { | 13 switch (reason) { |
14 case PaintInvalidationNone: | 14 case PaintInvalidationNone: |
15 return "none"; | 15 return "none"; |
| 16 case PaintInvalidationProbablyNone: |
| 17 return "probably none"; |
16 case PaintInvalidationIncremental: | 18 case PaintInvalidationIncremental: |
17 return "incremental"; | 19 return "incremental"; |
18 case PaintInvalidationRectangle: | 20 case PaintInvalidationRectangle: |
19 return "invalidate paint rectangle"; | 21 return "invalidate paint rectangle"; |
20 case PaintInvalidationFull: | 22 case PaintInvalidationFull: |
21 return "full"; | 23 return "full"; |
22 case PaintInvalidationStyleChange: | 24 case PaintInvalidationStyleChange: |
23 return "style change"; | 25 return "style change"; |
24 case PaintInvalidationForcedByLayout: | 26 case PaintInvalidationForcedByLayout: |
25 return "forced by layout"; | 27 return "forced by layout"; |
(...skipping 30 matching lines...) Expand all Loading... |
56 case PaintInvalidationSVGResourceChange: | 58 case PaintInvalidationSVGResourceChange: |
57 return "SVG resource change"; | 59 return "SVG resource change"; |
58 case PaintInvalidationDelayedFull: | 60 case PaintInvalidationDelayedFull: |
59 return "delayed full"; | 61 return "delayed full"; |
60 } | 62 } |
61 ASSERT_NOT_REACHED(); | 63 ASSERT_NOT_REACHED(); |
62 return ""; | 64 return ""; |
63 } | 65 } |
64 | 66 |
65 } // namespace blink | 67 } // namespace blink |
OLD | NEW |