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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 return drawingTypeAsDebugString(type); | 187 return drawingTypeAsDebugString(type); |
188 | 188 |
189 if (isForeignLayerType(type)) | 189 if (isForeignLayerType(type)) |
190 return foreignLayerTypeAsDebugString(type); | 190 return foreignLayerTypeAsDebugString(type); |
191 | 191 |
192 if (isClipType(type)) | 192 if (isClipType(type)) |
193 return clipTypeAsDebugString(type); | 193 return clipTypeAsDebugString(type); |
194 if (isEndClipType(type)) | 194 if (isEndClipType(type)) |
195 return "End" + clipTypeAsDebugString(endClipTypeToClipType(type)); | 195 return "End" + clipTypeAsDebugString(endClipTypeToClipType(type)); |
196 | 196 |
197 if (type == kUninitializedType) | |
198 return "UninitializedType"; | |
199 | |
200 PAINT_PHASE_BASED_DEBUG_STRINGS(FloatClip); | 197 PAINT_PHASE_BASED_DEBUG_STRINGS(FloatClip); |
201 if (isEndFloatClipType(type)) | 198 if (isEndFloatClipType(type)) |
202 return "End" + typeAsDebugString(endFloatClipTypeToFloatClipType(type)); | 199 return "End" + typeAsDebugString(endFloatClipTypeToFloatClipType(type)); |
203 | 200 |
204 if (isScrollType(type)) | 201 if (isScrollType(type)) |
205 return scrollTypeAsDebugString(type); | 202 return scrollTypeAsDebugString(type); |
206 if (isEndScrollType(type)) | 203 if (isEndScrollType(type)) |
207 return "End" + scrollTypeAsDebugString(endScrollTypeToScrollType(type)); | 204 return "End" + scrollTypeAsDebugString(endScrollTypeToScrollType(type)); |
208 | 205 |
209 if (isTransform3DType(type)) | 206 if (isTransform3DType(type)) |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 stringBuilder.append("\", type: \""); | 250 stringBuilder.append("\", type: \""); |
254 stringBuilder.append(typeAsDebugString(getType())); | 251 stringBuilder.append(typeAsDebugString(getType())); |
255 stringBuilder.append('"'); | 252 stringBuilder.append('"'); |
256 if (m_skippedCache) | 253 if (m_skippedCache) |
257 stringBuilder.append(", skippedCache: true"); | 254 stringBuilder.append(", skippedCache: true"); |
258 } | 255 } |
259 | 256 |
260 #endif | 257 #endif |
261 | 258 |
262 } // namespace blink | 259 } // namespace blink |
OLD | NEW |