| 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/paint/DisplayItem.h" | 5 #include "platform/graphics/paint/DisplayItem.h" |
| 6 | 6 |
| 7 namespace blink { | 7 namespace blink { |
| 8 | 8 |
| 9 struct SameSizeAsDisplayItem { | 9 struct SameSizeAsDisplayItem { |
| 10 virtual ~SameSizeAsDisplayItem() { } // Allocate vtable pointer. | 10 virtual ~SameSizeAsDisplayItem() { } // Allocate vtable pointer. |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 static WTF::String drawingTypeAsDebugString(DisplayItem::Type type) | 125 static WTF::String drawingTypeAsDebugString(DisplayItem::Type type) |
| 126 { | 126 { |
| 127 PAINT_PHASE_BASED_DEBUG_STRINGS(Drawing); | 127 PAINT_PHASE_BASED_DEBUG_STRINGS(Drawing); |
| 128 return "Drawing" + specialDrawingTypeAsDebugString(type); | 128 return "Drawing" + specialDrawingTypeAsDebugString(type); |
| 129 } | 129 } |
| 130 | 130 |
| 131 static String foreignLayerTypeAsDebugString(DisplayItem::Type type) | 131 static String foreignLayerTypeAsDebugString(DisplayItem::Type type) |
| 132 { | 132 { |
| 133 switch (type) { | 133 switch (type) { |
| 134 DEBUG_STRING_CASE(ForeignLayerCanvas); |
| 134 DEBUG_STRING_CASE(ForeignLayerPlugin); | 135 DEBUG_STRING_CASE(ForeignLayerPlugin); |
| 135 DEBUG_STRING_CASE(ForeignLayerVideo); | 136 DEBUG_STRING_CASE(ForeignLayerVideo); |
| 136 DEFAULT_CASE; | 137 DEFAULT_CASE; |
| 137 } | 138 } |
| 138 } | 139 } |
| 139 | 140 |
| 140 static WTF::String clipTypeAsDebugString(DisplayItem::Type type) | 141 static WTF::String clipTypeAsDebugString(DisplayItem::Type type) |
| 141 { | 142 { |
| 142 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox); | 143 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox); |
| 143 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds); | 144 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 stringBuilder.append("\", type: \""); | 256 stringBuilder.append("\", type: \""); |
| 256 stringBuilder.append(typeAsDebugString(getType())); | 257 stringBuilder.append(typeAsDebugString(getType())); |
| 257 stringBuilder.append('"'); | 258 stringBuilder.append('"'); |
| 258 if (m_skippedCache) | 259 if (m_skippedCache) |
| 259 stringBuilder.append(", skippedCache: true"); | 260 stringBuilder.append(", skippedCache: true"); |
| 260 } | 261 } |
| 261 | 262 |
| 262 #endif | 263 #endif |
| 263 | 264 |
| 264 } // namespace blink | 265 } // namespace blink |
| OLD | NEW |