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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(ForeignLayerPlugin); | 134 DEBUG_STRING_CASE(ForeignLayerPlugin); |
| 135 DEBUG_STRING_CASE(ForeignLayerVideo); |
135 DEFAULT_CASE; | 136 DEFAULT_CASE; |
136 } | 137 } |
137 } | 138 } |
138 | 139 |
139 static WTF::String clipTypeAsDebugString(DisplayItem::Type type) | 140 static WTF::String clipTypeAsDebugString(DisplayItem::Type type) |
140 { | 141 { |
141 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox); | 142 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox); |
142 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds); | 143 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds); |
143 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipLayerFragment); | 144 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipLayerFragment); |
144 | 145 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 stringBuilder.append("\", type: \""); | 255 stringBuilder.append("\", type: \""); |
255 stringBuilder.append(typeAsDebugString(getType())); | 256 stringBuilder.append(typeAsDebugString(getType())); |
256 stringBuilder.append('"'); | 257 stringBuilder.append('"'); |
257 if (m_skippedCache) | 258 if (m_skippedCache) |
258 stringBuilder.append(", skippedCache: true"); | 259 stringBuilder.append(", skippedCache: true"); |
259 } | 260 } |
260 | 261 |
261 #endif | 262 #endif |
262 | 263 |
263 } // namespace blink | 264 } // namespace blink |
OLD | NEW |