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

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

Issue 1212293003: Clean up BoxClipper (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « Source/platform/graphics/paint/DisplayItem.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
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
OLDNEW
« no previous file with comments | « Source/platform/graphics/paint/DisplayItem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698