| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 218 |
| 219 switch (type) { | 219 switch (type) { |
| 220 DEBUG_STRING_CASE(BeginFilter); | 220 DEBUG_STRING_CASE(BeginFilter); |
| 221 DEBUG_STRING_CASE(EndFilter); | 221 DEBUG_STRING_CASE(EndFilter); |
| 222 DEBUG_STRING_CASE(BeginCompositing); | 222 DEBUG_STRING_CASE(BeginCompositing); |
| 223 DEBUG_STRING_CASE(EndCompositing); | 223 DEBUG_STRING_CASE(EndCompositing); |
| 224 DEBUG_STRING_CASE(BeginTransform); | 224 DEBUG_STRING_CASE(BeginTransform); |
| 225 DEBUG_STRING_CASE(EndTransform); | 225 DEBUG_STRING_CASE(EndTransform); |
| 226 DEBUG_STRING_CASE(BeginClipPath); | 226 DEBUG_STRING_CASE(BeginClipPath); |
| 227 DEBUG_STRING_CASE(EndClipPath); | 227 DEBUG_STRING_CASE(EndClipPath); |
| 228 DEBUG_STRING_CASE(Subsequence); | |
| 229 DEBUG_STRING_CASE(EndSubsequence); | |
| 230 DEBUG_STRING_CASE(UninitializedType); | 228 DEBUG_STRING_CASE(UninitializedType); |
| 231 DEFAULT_CASE; | 229 DEFAULT_CASE; |
| 232 } | 230 } |
| 233 } | 231 } |
| 234 | 232 |
| 235 WTF::String DisplayItem::asDebugString() const { | 233 WTF::String DisplayItem::asDebugString() const { |
| 236 WTF::StringBuilder stringBuilder; | 234 WTF::StringBuilder stringBuilder; |
| 237 stringBuilder.append('{'); | 235 stringBuilder.append('{'); |
| 238 dumpPropertiesAsDebugString(stringBuilder); | 236 dumpPropertiesAsDebugString(stringBuilder); |
| 239 stringBuilder.append('}'); | 237 stringBuilder.append('}'); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 257 stringBuilder.append("\", type: \""); | 255 stringBuilder.append("\", type: \""); |
| 258 stringBuilder.append(typeAsDebugString(getType())); | 256 stringBuilder.append(typeAsDebugString(getType())); |
| 259 stringBuilder.append('"'); | 257 stringBuilder.append('"'); |
| 260 if (m_skippedCache) | 258 if (m_skippedCache) |
| 261 stringBuilder.append(", skippedCache: true"); | 259 stringBuilder.append(", skippedCache: true"); |
| 262 } | 260 } |
| 263 | 261 |
| 264 #endif | 262 #endif |
| 265 | 263 |
| 266 } // namespace blink | 264 } // namespace blink |
| OLD | NEW |