| 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 "platform/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 switch (reason) { | 12 switch (reason) { |
| 13 case PaintInvalidationNone: | 13 case PaintInvalidationNone: |
| 14 return "none"; | 14 return "none"; |
| 15 case PaintInvalidationIncremental: | 15 case PaintInvalidationIncremental: |
| 16 return "incremental"; | 16 return "incremental"; |
| 17 case PaintInvalidationRectangle: | 17 case PaintInvalidationRectangle: |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 } | 69 } |
| 70 ASSERT_NOT_REACHED(); | 70 ASSERT_NOT_REACHED(); |
| 71 return ""; | 71 return ""; |
| 72 } | 72 } |
| 73 | 73 |
| 74 std::ostream& operator<<(std::ostream& out, PaintInvalidationReason reason) { | 74 std::ostream& operator<<(std::ostream& out, PaintInvalidationReason reason) { |
| 75 return out << paintInvalidationReasonToString(reason); | 75 return out << paintInvalidationReasonToString(reason); |
| 76 } | 76 } |
| 77 | 77 |
| 78 } // namespace blink | 78 } // namespace blink |
| OLD | NEW |