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

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

Issue 1160763005: Don't cache reflection drawings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 void DisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const 197 void DisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const
198 { 198 {
199 stringBuilder.append(String::format("client: \"%p", client())); 199 stringBuilder.append(String::format("client: \"%p", client()));
200 if (!clientDebugString().isEmpty()) { 200 if (!clientDebugString().isEmpty()) {
201 stringBuilder.append(' '); 201 stringBuilder.append(' ');
202 stringBuilder.append(clientDebugString()); 202 stringBuilder.append(clientDebugString());
203 } 203 }
204 stringBuilder.append("\", type: \""); 204 stringBuilder.append("\", type: \"");
205 stringBuilder.append(typeAsDebugString(type())); 205 stringBuilder.append(typeAsDebugString(type()));
206 stringBuilder.append('"'); 206 stringBuilder.append('"');
207 if (m_id.scopeContainer) 207 if (m_skippedCache)
208 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_id.scopeCont ainer, m_id.scopeId)); 208 stringBuilder.append(", skippedCache: true");
209 if (m_scopeContainer)
210 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_scopeContain er, m_scopeId));
209 } 211 }
210 212
211 #endif 213 #endif
212 214
213 } // namespace blink 215 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698