| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/testing/PaintPrinters.h" | 5 #include "platform/testing/PaintPrinters.h" |
| 6 | 6 |
| 7 #include <iomanip> // NOLINT |
| 8 #include <ostream> // NOLINT |
| 7 #include "platform/graphics/paint/PaintChunk.h" | 9 #include "platform/graphics/paint/PaintChunk.h" |
| 8 #include "platform/graphics/paint/PaintChunkProperties.h" | 10 #include "platform/graphics/paint/PaintChunkProperties.h" |
| 9 #include <iomanip> // NOLINT | |
| 10 #include <ostream> // NOLINT | |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 void PrintTo(const PaintChunk& chunk, std::ostream* os) { | 14 void PrintTo(const PaintChunk& chunk, std::ostream* os) { |
| 15 *os << "PaintChunk(begin=" << chunk.begin_index << ", end=" << chunk.end_index | 15 *os << "PaintChunk(begin=" << chunk.begin_index << ", end=" << chunk.end_index |
| 16 << ", id="; | 16 << ", id="; |
| 17 if (!chunk.id) { | 17 if (!chunk.id) { |
| 18 *os << "null"; | 18 *os << "null"; |
| 19 } else { | 19 } else { |
| 20 *os << "(" << &chunk.id->client << ", "; | 20 *os << "(" << &chunk.id->client << ", "; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 void PrintTo(const EffectPaintPropertyNode& node, std::ostream* os) { | 85 void PrintTo(const EffectPaintPropertyNode& node, std::ostream* os) { |
| 86 *os << "EffectPaintPropertyNode(" << node.ToString().Ascii().data() << ")"; | 86 *os << "EffectPaintPropertyNode(" << node.ToString().Ascii().data() << ")"; |
| 87 } | 87 } |
| 88 | 88 |
| 89 void PrintTo(const ScrollPaintPropertyNode& node, std::ostream* os) { | 89 void PrintTo(const ScrollPaintPropertyNode& node, std::ostream* os) { |
| 90 *os << "ScrollPaintPropertyNode(" << node.ToString().Ascii().data() << ")"; | 90 *os << "ScrollPaintPropertyNode(" << node.ToString().Ascii().data() << ")"; |
| 91 } | 91 } |
| 92 | 92 |
| 93 } // namespace blink | 93 } // namespace blink |
| OLD | NEW |