Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 return "PaintPhaseClippingMask"; 48 return "PaintPhaseClippingMask";
49 default: 49 default:
50 ASSERT_NOT_REACHED(); 50 ASSERT_NOT_REACHED();
51 return "Unknown"; 51 return "Unknown";
52 } 52 }
53 } 53 }
54 54
55 #define PAINT_PHASE_BASED_DEBUG_STRINGS(Category) \ 55 #define PAINT_PHASE_BASED_DEBUG_STRINGS(Category) \
56 if (type >= DisplayItem::k##Category##PaintPhaseFirst && \ 56 if (type >= DisplayItem::k##Category##PaintPhaseFirst && \
57 type <= DisplayItem::k##Category##PaintPhaseLast) \ 57 type <= DisplayItem::k##Category##PaintPhaseLast) \
58 return #Category + paintPhaseAsDebugString( \ 58 return #Category + \
59 type - DisplayItem::k##Category##PaintPhaseFirst); 59 paintPhaseAsDebugString(type - \
60 DisplayItem::k##Category##PaintPhaseFirst);
60 61
61 #define DEBUG_STRING_CASE(DisplayItemName) \ 62 #define DEBUG_STRING_CASE(DisplayItemName) \
62 case DisplayItem::k##DisplayItemName: \ 63 case DisplayItem::k##DisplayItemName: \
63 return #DisplayItemName 64 return #DisplayItemName
64 65
65 #define DEFAULT_CASE \ 66 #define DEFAULT_CASE \
66 default: \ 67 default: \
67 ASSERT_NOT_REACHED(); \ 68 ASSERT_NOT_REACHED(); \
68 return "Unknown" 69 return "Unknown"
69 70
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 return "End" + typeAsDebugString(endFloatClipTypeToFloatClipType(type)); 211 return "End" + typeAsDebugString(endFloatClipTypeToFloatClipType(type));
211 212
212 if (isScrollType(type)) 213 if (isScrollType(type))
213 return scrollTypeAsDebugString(type); 214 return scrollTypeAsDebugString(type);
214 if (isEndScrollType(type)) 215 if (isEndScrollType(type))
215 return "End" + scrollTypeAsDebugString(endScrollTypeToScrollType(type)); 216 return "End" + scrollTypeAsDebugString(endScrollTypeToScrollType(type));
216 217
217 if (isTransform3DType(type)) 218 if (isTransform3DType(type))
218 return transform3DTypeAsDebugString(type); 219 return transform3DTypeAsDebugString(type);
219 if (isEndTransform3DType(type)) 220 if (isEndTransform3DType(type))
220 return "End" + transform3DTypeAsDebugString( 221 return "End" +
221 endTransform3DTypeToTransform3DType(type)); 222 transform3DTypeAsDebugString(
223 endTransform3DTypeToTransform3DType(type));
222 224
223 switch (type) { 225 switch (type) {
224 DEBUG_STRING_CASE(BeginFilter); 226 DEBUG_STRING_CASE(BeginFilter);
225 DEBUG_STRING_CASE(EndFilter); 227 DEBUG_STRING_CASE(EndFilter);
226 DEBUG_STRING_CASE(BeginCompositing); 228 DEBUG_STRING_CASE(BeginCompositing);
227 DEBUG_STRING_CASE(EndCompositing); 229 DEBUG_STRING_CASE(EndCompositing);
228 DEBUG_STRING_CASE(BeginTransform); 230 DEBUG_STRING_CASE(BeginTransform);
229 DEBUG_STRING_CASE(EndTransform); 231 DEBUG_STRING_CASE(EndTransform);
230 DEBUG_STRING_CASE(BeginClipPath); 232 DEBUG_STRING_CASE(BeginClipPath);
231 DEBUG_STRING_CASE(EndClipPath); 233 DEBUG_STRING_CASE(EndClipPath);
(...skipping 29 matching lines...) Expand all
261 stringBuilder.append("\", type: \""); 263 stringBuilder.append("\", type: \"");
262 stringBuilder.append(typeAsDebugString(getType())); 264 stringBuilder.append(typeAsDebugString(getType()));
263 stringBuilder.append('"'); 265 stringBuilder.append('"');
264 if (m_skippedCache) 266 if (m_skippedCache)
265 stringBuilder.append(", skippedCache: true"); 267 stringBuilder.append(", skippedCache: true");
266 } 268 }
267 269
268 #endif 270 #endif
269 271
270 } // namespace blink 272 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698