| 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 struct SameSizeAsDisplayItem { | 10 struct SameSizeAsDisplayItem { |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 { | 141 { |
| 142 if (isDrawingType(type)) | 142 if (isDrawingType(type)) |
| 143 return drawingTypeAsDebugString(type); | 143 return drawingTypeAsDebugString(type); |
| 144 if (isCachedType(type)) | 144 if (isCachedType(type)) |
| 145 return "Cached" + drawingTypeAsDebugString(cachedTypeToDrawingType(type)
); | 145 return "Cached" + drawingTypeAsDebugString(cachedTypeToDrawingType(type)
); |
| 146 if (isClipType(type)) | 146 if (isClipType(type)) |
| 147 return clipTypeAsDebugString(type); | 147 return clipTypeAsDebugString(type); |
| 148 if (isEndClipType(type)) | 148 if (isEndClipType(type)) |
| 149 return "End" + clipTypeAsDebugString(endClipTypeToClipType(type)); | 149 return "End" + clipTypeAsDebugString(endClipTypeToClipType(type)); |
| 150 | 150 |
| 151 if (type == UninitializedType) |
| 152 return "UninitializedType"; |
| 153 |
| 151 PAINT_PHASE_BASED_DEBUG_STRINGS(FloatClip); | 154 PAINT_PHASE_BASED_DEBUG_STRINGS(FloatClip); |
| 152 if (isEndFloatClipType(type)) | 155 if (isEndFloatClipType(type)) |
| 153 return "End" + typeAsDebugString(endFloatClipTypeToFloatClipType(type)); | 156 return "End" + typeAsDebugString(endFloatClipTypeToFloatClipType(type)); |
| 154 | 157 |
| 155 PAINT_PHASE_BASED_DEBUG_STRINGS(Scroll); | 158 PAINT_PHASE_BASED_DEBUG_STRINGS(Scroll); |
| 156 if (isEndScrollType(type)) | 159 if (isEndScrollType(type)) |
| 157 return "End" + typeAsDebugString(endScrollTypeToScrollType(type)); | 160 return "End" + typeAsDebugString(endScrollTypeToScrollType(type)); |
| 158 | 161 |
| 159 if (isTransform3DType(type)) | 162 if (isTransform3DType(type)) |
| 160 return transform3DTypeAsDebugString(type); | 163 return transform3DTypeAsDebugString(type); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 stringBuilder.append('"'); | 206 stringBuilder.append('"'); |
| 204 if (m_skippedCache) | 207 if (m_skippedCache) |
| 205 stringBuilder.append(", skippedCache: true"); | 208 stringBuilder.append(", skippedCache: true"); |
| 206 if (m_scopeContainer) | 209 if (m_scopeContainer) |
| 207 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_scopeContain
er, m_scopeId)); | 210 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_scopeContain
er, m_scopeId)); |
| 208 } | 211 } |
| 209 | 212 |
| 210 #endif | 213 #endif |
| 211 | 214 |
| 212 } // namespace blink | 215 } // namespace blink |
| OLD | NEW |