| 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 "platform/graphics/paint/PaintChunk.h" | 7 #include "platform/graphics/paint/PaintChunk.h" |
| 8 #include "platform/graphics/paint/PaintChunkProperties.h" | 8 #include "platform/graphics/paint/PaintChunkProperties.h" |
| 9 #include <iomanip> // NOLINT | 9 #include <iomanip> // NOLINT |
| 10 #include <ostream> // NOLINT | 10 #include <ostream> // NOLINT |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 *os << ", bounds="; | 62 *os << ", bounds="; |
| 63 PrintTo(chunk.bounds, os); | 63 PrintTo(chunk.bounds, os); |
| 64 *os << ", knownToBeOpaque=" << chunk.knownToBeOpaque << ")"; | 64 *os << ", knownToBeOpaque=" << chunk.knownToBeOpaque << ")"; |
| 65 | 65 |
| 66 *os << ", rerasterizationRects=["; | 66 *os << ", rerasterizationRects=["; |
| 67 bool first = true; | 67 bool first = true; |
| 68 for (auto& r : chunk.rasterInvalidationRects) { | 68 for (auto& r : chunk.rasterInvalidationRects) { |
| 69 if (!first) | 69 if (!first) |
| 70 *os << ", "; | 70 *os << ", "; |
| 71 first = false; | 71 first = false; |
| 72 PrintTo(r, os); | 72 PrintTo(r.rect, os); |
| 73 }; | 73 }; |
| 74 *os << "]"; | 74 *os << "]"; |
| 75 } | 75 } |
| 76 | 76 |
| 77 void PrintTo(const PaintChunkProperties& properties, std::ostream* os) | 77 void PrintTo(const PaintChunkProperties& properties, std::ostream* os) |
| 78 { | 78 { |
| 79 *os << "PaintChunkProperties("; | 79 *os << "PaintChunkProperties("; |
| 80 bool printedProperty = false; | 80 bool printedProperty = false; |
| 81 if (properties.transform) { | 81 if (properties.transform) { |
| 82 *os << "transform="; | 82 *os << "transform="; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 *os << ", userScrollableHorizontal=" << node.userScrollableHorizontal(); | 138 *os << ", userScrollableHorizontal=" << node.userScrollableHorizontal(); |
| 139 *os << ", userScrollableVertical=" << node.userScrollableVertical(); | 139 *os << ", userScrollableVertical=" << node.userScrollableVertical(); |
| 140 *os << ", scrollOffsetTranslation="; | 140 *os << ", scrollOffsetTranslation="; |
| 141 PrintPointer(node.scrollOffsetTranslation(), *os); | 141 PrintPointer(node.scrollOffsetTranslation(), *os); |
| 142 *os << ", parent="; | 142 *os << ", parent="; |
| 143 PrintPointer(node.parent(), *os); | 143 PrintPointer(node.parent(), *os); |
| 144 *os << ")"; | 144 *os << ")"; |
| 145 } | 145 } |
| 146 | 146 |
| 147 } // namespace blink | 147 } // namespace blink |
| OLD | NEW |