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

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

Issue 2124893002: [SPv2] Use foreign layer support to enable composited video. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge with master, integration test 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
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(ForeignLayerPlugin); 134 DEBUG_STRING_CASE(ForeignLayerPlugin);
135 DEBUG_STRING_CASE(ForeignLayerVideo);
135 DEFAULT_CASE; 136 DEFAULT_CASE;
136 } 137 }
137 } 138 }
138 139
139 static WTF::String clipTypeAsDebugString(DisplayItem::Type type) 140 static WTF::String clipTypeAsDebugString(DisplayItem::Type type)
140 { 141 {
141 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox); 142 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox);
142 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds); 143 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds);
143 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipLayerFragment); 144 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipLayerFragment);
144 145
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 stringBuilder.append("\", type: \""); 255 stringBuilder.append("\", type: \"");
255 stringBuilder.append(typeAsDebugString(getType())); 256 stringBuilder.append(typeAsDebugString(getType()));
256 stringBuilder.append('"'); 257 stringBuilder.append('"');
257 if (m_skippedCache) 258 if (m_skippedCache)
258 stringBuilder.append(", skippedCache: true"); 259 stringBuilder.append(", skippedCache: true");
259 } 260 }
260 261
261 #endif 262 #endif
262 263
263 } // namespace blink 264 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698