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

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

Issue 2121933003: [SPv2] Paint accelerated canvases as foreign layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add 'override' keyword to StubChromeClientForSPv2::didPaint Created 4 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 | « third_party/WebKit/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 "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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 static WTF::String drawingTypeAsDebugString(DisplayItem::Type type) 125 static WTF::String drawingTypeAsDebugString(DisplayItem::Type type)
126 { 126 {
127 PAINT_PHASE_BASED_DEBUG_STRINGS(Drawing); 127 PAINT_PHASE_BASED_DEBUG_STRINGS(Drawing);
128 return "Drawing" + specialDrawingTypeAsDebugString(type); 128 return "Drawing" + specialDrawingTypeAsDebugString(type);
129 } 129 }
130 130
131 static String foreignLayerTypeAsDebugString(DisplayItem::Type type) 131 static String foreignLayerTypeAsDebugString(DisplayItem::Type type)
132 { 132 {
133 switch (type) { 133 switch (type) {
134 DEBUG_STRING_CASE(ForeignLayerCanvas);
134 DEBUG_STRING_CASE(ForeignLayerPlugin); 135 DEBUG_STRING_CASE(ForeignLayerPlugin);
135 DEBUG_STRING_CASE(ForeignLayerVideo); 136 DEBUG_STRING_CASE(ForeignLayerVideo);
136 DEFAULT_CASE; 137 DEFAULT_CASE;
137 } 138 }
138 } 139 }
139 140
140 static WTF::String clipTypeAsDebugString(DisplayItem::Type type) 141 static WTF::String clipTypeAsDebugString(DisplayItem::Type type)
141 { 142 {
142 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox); 143 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox);
143 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds); 144 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds);
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 stringBuilder.append("\", type: \""); 256 stringBuilder.append("\", type: \"");
256 stringBuilder.append(typeAsDebugString(getType())); 257 stringBuilder.append(typeAsDebugString(getType()));
257 stringBuilder.append('"'); 258 stringBuilder.append('"');
258 if (m_skippedCache) 259 if (m_skippedCache)
259 stringBuilder.append(", skippedCache: true"); 260 stringBuilder.append(", skippedCache: true");
260 } 261 }
261 262
262 #endif 263 #endif
263 264
264 } // namespace blink 265 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698