| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 210 |
| 211 switch (type) { | 211 switch (type) { |
| 212 DEBUG_STRING_CASE(BeginFilter); | 212 DEBUG_STRING_CASE(BeginFilter); |
| 213 DEBUG_STRING_CASE(EndFilter); | 213 DEBUG_STRING_CASE(EndFilter); |
| 214 DEBUG_STRING_CASE(BeginCompositing); | 214 DEBUG_STRING_CASE(BeginCompositing); |
| 215 DEBUG_STRING_CASE(EndCompositing); | 215 DEBUG_STRING_CASE(EndCompositing); |
| 216 DEBUG_STRING_CASE(BeginTransform); | 216 DEBUG_STRING_CASE(BeginTransform); |
| 217 DEBUG_STRING_CASE(EndTransform); | 217 DEBUG_STRING_CASE(EndTransform); |
| 218 DEBUG_STRING_CASE(BeginClipPath); | 218 DEBUG_STRING_CASE(BeginClipPath); |
| 219 DEBUG_STRING_CASE(EndClipPath); | 219 DEBUG_STRING_CASE(EndClipPath); |
| 220 DEBUG_STRING_CASE(Subsequence); | |
| 221 DEBUG_STRING_CASE(EndSubsequence); | |
| 222 DEBUG_STRING_CASE(UninitializedType); | 220 DEBUG_STRING_CASE(UninitializedType); |
| 223 DEFAULT_CASE; | 221 DEFAULT_CASE; |
| 224 } | 222 } |
| 225 } | 223 } |
| 226 | 224 |
| 227 WTF::String DisplayItem::asDebugString() const { | 225 WTF::String DisplayItem::asDebugString() const { |
| 228 WTF::StringBuilder stringBuilder; | 226 WTF::StringBuilder stringBuilder; |
| 229 stringBuilder.append('{'); | 227 stringBuilder.append('{'); |
| 230 dumpPropertiesAsDebugString(stringBuilder); | 228 dumpPropertiesAsDebugString(stringBuilder); |
| 231 stringBuilder.append('}'); | 229 stringBuilder.append('}'); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 249 stringBuilder.append("\", type: \""); | 247 stringBuilder.append("\", type: \""); |
| 250 stringBuilder.append(typeAsDebugString(getType())); | 248 stringBuilder.append(typeAsDebugString(getType())); |
| 251 stringBuilder.append('"'); | 249 stringBuilder.append('"'); |
| 252 if (m_skippedCache) | 250 if (m_skippedCache) |
| 253 stringBuilder.append(", skippedCache: true"); | 251 stringBuilder.append(", skippedCache: true"); |
| 254 } | 252 } |
| 255 | 253 |
| 256 #endif | 254 #endif |
| 257 | 255 |
| 258 } // namespace blink | 256 } // namespace blink |
| OLD | NEW |