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

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

Issue 1193433004: Blink-side contiguous allocation of display items. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add ListContainer::AllocateAndConstructWithArguments and a TODO in DisplayItemList::findMatchingIte… 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
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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 if (isTransform3DType(type)) 162 if (isTransform3DType(type))
163 return transform3DTypeAsDebugString(type); 163 return transform3DTypeAsDebugString(type);
164 if (isEndTransform3DType(type)) 164 if (isEndTransform3DType(type))
165 return "End" + transform3DTypeAsDebugString(endTransform3DTypeToTransfor m3DType(type)); 165 return "End" + transform3DTypeAsDebugString(endTransform3DTypeToTransfor m3DType(type));
166 166
167 PAINT_PHASE_BASED_DEBUG_STRINGS(SubtreeCached); 167 PAINT_PHASE_BASED_DEBUG_STRINGS(SubtreeCached);
168 PAINT_PHASE_BASED_DEBUG_STRINGS(BeginSubtree); 168 PAINT_PHASE_BASED_DEBUG_STRINGS(BeginSubtree);
169 PAINT_PHASE_BASED_DEBUG_STRINGS(EndSubtree); 169 PAINT_PHASE_BASED_DEBUG_STRINGS(EndSubtree);
170 170
171 if (type == UninitializedType)
172 return "UninitializedType";
173
171 switch (type) { 174 switch (type) {
172 DEBUG_STRING_CASE(BeginFilter); 175 DEBUG_STRING_CASE(BeginFilter);
173 DEBUG_STRING_CASE(EndFilter); 176 DEBUG_STRING_CASE(EndFilter);
174 DEBUG_STRING_CASE(BeginCompositing); 177 DEBUG_STRING_CASE(BeginCompositing);
175 DEBUG_STRING_CASE(EndCompositing); 178 DEBUG_STRING_CASE(EndCompositing);
176 DEBUG_STRING_CASE(BeginTransform); 179 DEBUG_STRING_CASE(BeginTransform);
177 DEBUG_STRING_CASE(EndTransform); 180 DEBUG_STRING_CASE(EndTransform);
178 DEBUG_STRING_CASE(BeginClipPath); 181 DEBUG_STRING_CASE(BeginClipPath);
179 DEBUG_STRING_CASE(EndClipPath); 182 DEBUG_STRING_CASE(EndClipPath);
180 DEBUG_STRING_CASE(BeginFixedPosition); 183 DEBUG_STRING_CASE(BeginFixedPosition);
(...skipping 25 matching lines...) Expand all
206 stringBuilder.append('"'); 209 stringBuilder.append('"');
207 if (m_skippedCache) 210 if (m_skippedCache)
208 stringBuilder.append(", skippedCache: true"); 211 stringBuilder.append(", skippedCache: true");
209 if (m_scopeContainer) 212 if (m_scopeContainer)
210 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_scopeContain er, m_scopeId)); 213 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_scopeContain er, m_scopeId));
211 } 214 }
212 215
213 #endif 216 #endif
214 217
215 } // namespace blink 218 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/paint/DisplayItem.h ('k') | Source/platform/graphics/paint/DisplayItemList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698