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

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

Issue 2804883006: Revert of Remove begin/end subseq. display items, and store on PaintController instead. (Closed)
Patch Set: Created 3 years, 8 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 switch (type) { 211 switch (type) {
212 DEBUG_STRING_CASE(BeginFilter); 212 DEBUG_STRING_CASE(BeginFilter);
213 DEBUG_STRING_CASE(EndFilter); 213 DEBUG_STRING_CASE(EndFilter);
214 DEBUG_STRING_CASE(BeginCompositing); 214 DEBUG_STRING_CASE(BeginCompositing);
215 DEBUG_STRING_CASE(EndCompositing); 215 DEBUG_STRING_CASE(EndCompositing);
216 DEBUG_STRING_CASE(BeginTransform); 216 DEBUG_STRING_CASE(BeginTransform);
217 DEBUG_STRING_CASE(EndTransform); 217 DEBUG_STRING_CASE(EndTransform);
218 DEBUG_STRING_CASE(BeginClipPath); 218 DEBUG_STRING_CASE(BeginClipPath);
219 DEBUG_STRING_CASE(EndClipPath); 219 DEBUG_STRING_CASE(EndClipPath);
220 DEBUG_STRING_CASE(Subsequence);
221 DEBUG_STRING_CASE(EndSubsequence);
220 DEBUG_STRING_CASE(UninitializedType); 222 DEBUG_STRING_CASE(UninitializedType);
221 DEFAULT_CASE; 223 DEFAULT_CASE;
222 } 224 }
223 } 225 }
224 226
225 WTF::String DisplayItem::asDebugString() const { 227 WTF::String DisplayItem::asDebugString() const {
226 WTF::StringBuilder stringBuilder; 228 WTF::StringBuilder stringBuilder;
227 stringBuilder.append('{'); 229 stringBuilder.append('{');
228 dumpPropertiesAsDebugString(stringBuilder); 230 dumpPropertiesAsDebugString(stringBuilder);
229 stringBuilder.append('}'); 231 stringBuilder.append('}');
(...skipping 17 matching lines...) Expand all
247 stringBuilder.append("\", type: \""); 249 stringBuilder.append("\", type: \"");
248 stringBuilder.append(typeAsDebugString(getType())); 250 stringBuilder.append(typeAsDebugString(getType()));
249 stringBuilder.append('"'); 251 stringBuilder.append('"');
250 if (m_skippedCache) 252 if (m_skippedCache)
251 stringBuilder.append(", skippedCache: true"); 253 stringBuilder.append(", skippedCache: true");
252 } 254 }
253 255
254 #endif 256 #endif
255 257
256 } // namespace blink 258 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698