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

Side by Side Diff: third_party/WebKit/Source/platform/testing/PaintPrinters.cpp

Issue 2277443003: [SPv2] Rasterization invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/platform/testing/FakeDisplayItemClient.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/testing/FakeDisplayItemClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698