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

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

Issue 867063004: [Slimming Paint] Paint the inspector overlay with GraphicsLayer DisplayList. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 #ifndef NDEBUG 10 #ifndef NDEBUG
(...skipping 26 matching lines...) Expand all
37 return #Category + paintPhaseAsDebugString(type - DisplayItem::Category# #PaintPhaseFirst); 37 return #Category + paintPhaseAsDebugString(type - DisplayItem::Category# #PaintPhaseFirst);
38 38
39 static WTF::String drawingTypeAsDebugString(DisplayItem::Type type) 39 static WTF::String drawingTypeAsDebugString(DisplayItem::Type type)
40 { 40 {
41 PAINT_PHASE_BASED_DEBUG_STRINGS(Drawing); 41 PAINT_PHASE_BASED_DEBUG_STRINGS(Drawing);
42 42
43 switch (type) { 43 switch (type) {
44 case DisplayItem::BoxDecorationBackground: return "DrawingBoxDecorationBackg round"; 44 case DisplayItem::BoxDecorationBackground: return "DrawingBoxDecorationBackg round";
45 case DisplayItem::Caret: return "DrawingCaret"; 45 case DisplayItem::Caret: return "DrawingCaret";
46 case DisplayItem::ColumnRules: return "DrawingColumnRules"; 46 case DisplayItem::ColumnRules: return "DrawingColumnRules";
47 case DisplayItem::DebugRedFill: return "DrawingDebugRedFill";
47 case DisplayItem::DragImage: return "DrawingDragImage"; 48 case DisplayItem::DragImage: return "DrawingDragImage";
48 case DisplayItem::LinkHighlight: return "DrawingLinkHighlight"; 49 case DisplayItem::LinkHighlight: return "DrawingLinkHighlight";
50 case DisplayItem::PageOverlay: return "PageOverlay";
49 case DisplayItem::PageWidgetDelegateBackgroundFallback: return "DrawingPageW idgetDelegateBackgroundFallback"; 51 case DisplayItem::PageWidgetDelegateBackgroundFallback: return "DrawingPageW idgetDelegateBackgroundFallback";
50 case DisplayItem::Resizer: return "DrawingResizer"; 52 case DisplayItem::Resizer: return "DrawingResizer";
51 case DisplayItem::SVGFilter: return "DrawingSVGFilter"; 53 case DisplayItem::SVGFilter: return "DrawingSVGFilter";
52 case DisplayItem::ScrollbarCorner: return "DrawingScrollbarCorner"; 54 case DisplayItem::ScrollbarCorner: return "DrawingScrollbarCorner";
53 case DisplayItem::ScrollbarHorizontal: return "DrawingScrollbarHorizontal"; 55 case DisplayItem::ScrollbarHorizontal: return "DrawingScrollbarHorizontal";
54 case DisplayItem::ScrollbarTickMark: return "DrawingScrollbarTickMark"; 56 case DisplayItem::ScrollbarTickMark: return "DrawingScrollbarTickMark";
55 case DisplayItem::ScrollbarVertical: return "DrawingScrollbarVertical"; 57 case DisplayItem::ScrollbarVertical: return "DrawingScrollbarVertical";
56 case DisplayItem::VideoBitmap: return "DrawingVideoBitmap"; 58 case DisplayItem::VideoBitmap: return "DrawingVideoBitmap";
57 case DisplayItem::ViewBackground: return "DrawingViewBackground"; 59 case DisplayItem::ViewBackground: return "DrawingViewBackground";
58 case DisplayItem::DebugRedFill: return "DrawingDebugRedFill";
59 default: 60 default:
60 ASSERT_NOT_REACHED(); 61 ASSERT_NOT_REACHED();
61 return "Unknown"; 62 return "Unknown";
62 } 63 }
63 } 64 }
64 65
65 static WTF::String clipTypeAsDebugString(DisplayItem::Type type) 66 static WTF::String clipTypeAsDebugString(DisplayItem::Type type)
66 { 67 {
67 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox); 68 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox);
68 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds); 69 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 stringBuilder.append("type: \""); 145 stringBuilder.append("type: \"");
145 stringBuilder.append(typeAsDebugString(type())); 146 stringBuilder.append(typeAsDebugString(type()));
146 stringBuilder.append('"'); 147 stringBuilder.append('"');
147 if (m_id.scopeContainer) 148 if (m_id.scopeContainer)
148 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_id.scopeCont ainer, m_id.scopeId)); 149 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_id.scopeCont ainer, m_id.scopeId));
149 } 150 }
150 151
151 #endif 152 #endif
152 153
153 } // namespace blink 154 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698