| OLD | NEW |
| 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 "core/paint/ViewDisplayList.h" | 6 #include "core/paint/ViewDisplayList.h" |
| 7 | 7 |
| 8 #include "platform/NotImplemented.h" | 8 #include "platform/NotImplemented.h" |
| 9 #include "platform/RuntimeEnabledFeatures.h" | 9 #include "platform/RuntimeEnabledFeatures.h" |
| 10 | 10 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 case DisplayItem::ClipLayerFragmentFloat: return "ClipLayerFragmentFloat"; | 139 case DisplayItem::ClipLayerFragmentFloat: return "ClipLayerFragmentFloat"; |
| 140 case DisplayItem::ClipLayerFragmentForeground: return "ClipLayerFragmentFore
ground"; | 140 case DisplayItem::ClipLayerFragmentForeground: return "ClipLayerFragmentFore
ground"; |
| 141 case DisplayItem::ClipLayerFragmentChildOutline: return "ClipLayerFragmentCh
ildOutline"; | 141 case DisplayItem::ClipLayerFragmentChildOutline: return "ClipLayerFragmentCh
ildOutline"; |
| 142 case DisplayItem::ClipLayerFragmentOutline: return "ClipLayerFragmentOutline
"; | 142 case DisplayItem::ClipLayerFragmentOutline: return "ClipLayerFragmentOutline
"; |
| 143 case DisplayItem::ClipLayerFragmentMask: return "ClipLayerFragmentMask"; | 143 case DisplayItem::ClipLayerFragmentMask: return "ClipLayerFragmentMask"; |
| 144 case DisplayItem::ClipLayerFragmentClippingMask: return "ClipLayerFragmentCl
ippingMask"; | 144 case DisplayItem::ClipLayerFragmentClippingMask: return "ClipLayerFragmentCl
ippingMask"; |
| 145 case DisplayItem::ClipLayerFragmentParent: return "ClipLayerFragmentParent"; | 145 case DisplayItem::ClipLayerFragmentParent: return "ClipLayerFragmentParent"; |
| 146 case DisplayItem::ClipLayerFragmentSelection: return "ClipLayerFragmentSelec
tion"; | 146 case DisplayItem::ClipLayerFragmentSelection: return "ClipLayerFragmentSelec
tion"; |
| 147 case DisplayItem::ClipLayerFragmentChildBlockBackgrounds: return "ClipLayerF
ragmentChildBlockBackgrounds"; | 147 case DisplayItem::ClipLayerFragmentChildBlockBackgrounds: return "ClipLayerF
ragmentChildBlockBackgrounds"; |
| 148 case DisplayItem::EndClip: return "EndClip"; | 148 case DisplayItem::EndClip: return "EndClip"; |
| 149 case DisplayItem::BeginFilter: return "BeginFilter"; |
| 150 case DisplayItem::EndFilter: return "EndFilter"; |
| 149 } | 151 } |
| 150 ASSERT_NOT_REACHED(); | 152 ASSERT_NOT_REACHED(); |
| 151 return "Unknown"; | 153 return "Unknown"; |
| 152 } | 154 } |
| 153 | 155 |
| 154 WTF::String DisplayItem::rendererDebugString(const RenderObject* renderer) | 156 WTF::String DisplayItem::rendererDebugString(const RenderObject* renderer) |
| 155 { | 157 { |
| 156 if (renderer && renderer->node()) | 158 if (renderer && renderer->node()) |
| 157 return String::format("nodeName: \"%s\", renderer: \"%p\"", renderer->no
de()->nodeName().utf8().data(), renderer); | 159 return String::format("nodeName: \"%s\", renderer: \"%p\"", renderer->no
de()->nodeName().utf8().data(), renderer); |
| 158 return String::format("renderer: \"%p\"", renderer); | 160 return String::format("renderer: \"%p\"", renderer); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 177 } | 179 } |
| 178 | 180 |
| 179 void ViewDisplayList::showDebugData() const | 181 void ViewDisplayList::showDebugData() const |
| 180 { | 182 { |
| 181 fprintf(stderr, "paint list: [%s]\n", paintListAsDebugString(m_paintList).ut
f8().data()); | 183 fprintf(stderr, "paint list: [%s]\n", paintListAsDebugString(m_paintList).ut
f8().data()); |
| 182 fprintf(stderr, "new paints: [%s]\n", paintListAsDebugString(m_newPaints).ut
f8().data()); | 184 fprintf(stderr, "new paints: [%s]\n", paintListAsDebugString(m_newPaints).ut
f8().data()); |
| 183 } | 185 } |
| 184 #endif | 186 #endif |
| 185 | 187 |
| 186 } // namespace blink | 188 } // namespace blink |
| OLD | NEW |