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

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

Issue 947893002: Implement SVG masking with slimming paint (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add a mask debug print string 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
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 case DisplayItem::DebugRedFill: return "DrawingDebugRedFill"; 47 case DisplayItem::DebugRedFill: return "DrawingDebugRedFill";
48 case DisplayItem::DragImage: return "DrawingDragImage"; 48 case DisplayItem::DragImage: return "DrawingDragImage";
49 case DisplayItem::LinkHighlight: return "DrawingLinkHighlight"; 49 case DisplayItem::LinkHighlight: return "DrawingLinkHighlight";
50 case DisplayItem::PageOverlay: return "PageOverlay"; 50 case DisplayItem::PageOverlay: return "PageOverlay";
51 case DisplayItem::PageWidgetDelegateBackgroundFallback: return "DrawingPageW idgetDelegateBackgroundFallback"; 51 case DisplayItem::PageWidgetDelegateBackgroundFallback: return "DrawingPageW idgetDelegateBackgroundFallback";
52 case DisplayItem::PopupContainerBorder: return "DrawingPopupContainerBorder" ; 52 case DisplayItem::PopupContainerBorder: return "DrawingPopupContainerBorder" ;
53 case DisplayItem::PopupListBoxBackground: return "DrawingPopupListBoxBackgro und"; 53 case DisplayItem::PopupListBoxBackground: return "DrawingPopupListBoxBackgro und";
54 case DisplayItem::PopupListBoxRow: return "DrawingPopupListBoxRow"; 54 case DisplayItem::PopupListBoxRow: return "DrawingPopupListBoxRow";
55 case DisplayItem::Resizer: return "DrawingResizer"; 55 case DisplayItem::Resizer: return "DrawingResizer";
56 case DisplayItem::SVGFilter: return "DrawingSVGFilter"; 56 case DisplayItem::SVGFilter: return "DrawingSVGFilter";
57 case DisplayItem::SVGMask: return "DrawingSVGMask";
57 case DisplayItem::ScrollbarCorner: return "DrawingScrollbarCorner"; 58 case DisplayItem::ScrollbarCorner: return "DrawingScrollbarCorner";
58 case DisplayItem::ScrollbarHorizontal: return "DrawingScrollbarHorizontal"; 59 case DisplayItem::ScrollbarHorizontal: return "DrawingScrollbarHorizontal";
59 case DisplayItem::ScrollbarTickMark: return "DrawingScrollbarTickMark"; 60 case DisplayItem::ScrollbarTickMark: return "DrawingScrollbarTickMark";
60 case DisplayItem::ScrollbarVertical: return "DrawingScrollbarVertical"; 61 case DisplayItem::ScrollbarVertical: return "DrawingScrollbarVertical";
61 case DisplayItem::SelectionGap: return "DrawingSelectionGap"; 62 case DisplayItem::SelectionGap: return "DrawingSelectionGap";
62 case DisplayItem::VideoBitmap: return "DrawingVideoBitmap"; 63 case DisplayItem::VideoBitmap: return "DrawingVideoBitmap";
63 case DisplayItem::ViewBackground: return "DrawingViewBackground"; 64 case DisplayItem::ViewBackground: return "DrawingViewBackground";
64 default: 65 default:
65 ASSERT_NOT_REACHED(); 66 ASSERT_NOT_REACHED();
66 return "Unknown"; 67 return "Unknown";
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 stringBuilder.append("type: \""); 154 stringBuilder.append("type: \"");
154 stringBuilder.append(typeAsDebugString(type())); 155 stringBuilder.append(typeAsDebugString(type()));
155 stringBuilder.append('"'); 156 stringBuilder.append('"');
156 if (m_id.scopeContainer) 157 if (m_id.scopeContainer)
157 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_id.scopeCont ainer, m_id.scopeId)); 158 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_id.scopeCont ainer, m_id.scopeId));
158 } 159 }
159 160
160 #endif 161 #endif
161 162
162 } // namespace blink 163 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/paint/DisplayItem.h ('k') | Source/platform/graphics/paint/DrawingDisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698