| 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 "config.h" | 5 #include "config.h" |
| 6 #include "platform/graphics/paint/DisplayItem.h" | 6 #include "platform/graphics/paint/DisplayItem.h" |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 #ifndef NDEBUG | 10 #ifndef NDEBUG |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 PAINT_PHASE_BASED_DEBUG_STRINGS(BeginSubtree); | 117 PAINT_PHASE_BASED_DEBUG_STRINGS(BeginSubtree); |
| 118 PAINT_PHASE_BASED_DEBUG_STRINGS(EndSubtree); | 118 PAINT_PHASE_BASED_DEBUG_STRINGS(EndSubtree); |
| 119 | 119 |
| 120 switch (type) { | 120 switch (type) { |
| 121 case BeginFilter: return "BeginFilter"; | 121 case BeginFilter: return "BeginFilter"; |
| 122 case EndFilter: return "EndFilter"; | 122 case EndFilter: return "EndFilter"; |
| 123 case BeginCompositing: return "BeginCompositing"; | 123 case BeginCompositing: return "BeginCompositing"; |
| 124 case EndCompositing: return "EndCompositing"; | 124 case EndCompositing: return "EndCompositing"; |
| 125 case BeginTransform: return "BeginTransform"; | 125 case BeginTransform: return "BeginTransform"; |
| 126 case EndTransform: return "EndTransform"; | 126 case EndTransform: return "EndTransform"; |
| 127 case BeginTransform3D: return "BeginTransform3D"; |
| 128 case EndTransform3D: return "EndTransform3D"; |
| 127 case BeginClipPath: return "BeginClipPath"; | 129 case BeginClipPath: return "BeginClipPath"; |
| 128 case EndClipPath: return "EndClipPath"; | 130 case EndClipPath: return "EndClipPath"; |
| 129 default: | 131 default: |
| 130 ASSERT_NOT_REACHED(); | 132 ASSERT_NOT_REACHED(); |
| 131 return "Unknown"; | 133 return "Unknown"; |
| 132 } | 134 } |
| 133 } | 135 } |
| 134 | 136 |
| 135 WTF::String DisplayItem::asDebugString() const | 137 WTF::String DisplayItem::asDebugString() const |
| 136 { | 138 { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 151 stringBuilder.append("type: \""); | 153 stringBuilder.append("type: \""); |
| 152 stringBuilder.append(typeAsDebugString(type())); | 154 stringBuilder.append(typeAsDebugString(type())); |
| 153 stringBuilder.append('"'); | 155 stringBuilder.append('"'); |
| 154 if (m_id.scopeContainer) | 156 if (m_id.scopeContainer) |
| 155 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_id.scopeCont
ainer, m_id.scopeId)); | 157 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_id.scopeCont
ainer, m_id.scopeId)); |
| 156 } | 158 } |
| 157 | 159 |
| 158 #endif | 160 #endif |
| 159 | 161 |
| 160 } // namespace blink | 162 } // namespace blink |
| OLD | NEW |