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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 #else | 55 #else |
56 *os << static_cast<int>(chunk.id->type); | 56 *os << static_cast<int>(chunk.id->type); |
57 #endif | 57 #endif |
58 *os << ")"; | 58 *os << ")"; |
59 } | 59 } |
60 *os << ", props="; | 60 *os << ", props="; |
61 PrintTo(chunk.properties, os); | 61 PrintTo(chunk.properties, os); |
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 |
| 66 *os << ", rerasterizationRects=["; |
| 67 bool first = true; |
| 68 for (auto& r : chunk.rasterInvalidationRects) { |
| 69 if (!first) |
| 70 *os << ", "; |
| 71 first = false; |
| 72 PrintTo(r, os); |
| 73 }; |
| 74 *os << "]"; |
65 } | 75 } |
66 | 76 |
67 void PrintTo(const PaintChunkProperties& properties, std::ostream* os) | 77 void PrintTo(const PaintChunkProperties& properties, std::ostream* os) |
68 { | 78 { |
69 *os << "PaintChunkProperties("; | 79 *os << "PaintChunkProperties("; |
70 bool printedProperty = false; | 80 bool printedProperty = false; |
71 if (properties.transform) { | 81 if (properties.transform) { |
72 *os << "transform="; | 82 *os << "transform="; |
73 PrintTo(*properties.transform, os); | 83 PrintTo(*properties.transform, os); |
74 printedProperty = true; | 84 printedProperty = true; |
(...skipping 30 matching lines...) Expand all Loading... |
105 PrintTo(transformPaintProperty.origin(), os); | 115 PrintTo(transformPaintProperty.origin(), os); |
106 *os << ")"; | 116 *os << ")"; |
107 } | 117 } |
108 | 118 |
109 void PrintTo(const EffectPaintPropertyNode& effect, std::ostream* os) | 119 void PrintTo(const EffectPaintPropertyNode& effect, std::ostream* os) |
110 { | 120 { |
111 *os << "EffectPaintPropertyNode(opacity=" << effect.opacity() << ")"; | 121 *os << "EffectPaintPropertyNode(opacity=" << effect.opacity() << ")"; |
112 } | 122 } |
113 | 123 |
114 } // namespace blink | 124 } // namespace blink |
OLD | NEW |