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

Unified Diff: third_party/WebKit/Source/platform/testing/PaintPrinters.cpp

Issue 1714523005: WIP: backface visibility plumbing (not for review) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: still broken Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/PaintChunkProperties.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/testing/PaintPrinters.cpp
diff --git a/third_party/WebKit/Source/platform/testing/PaintPrinters.cpp b/third_party/WebKit/Source/platform/testing/PaintPrinters.cpp
index 259d82febd6aa3de93b6cdd4191bd7b0429ff0c5..abd63837c086ebcba29cc8e762556c7b738960c6 100644
--- a/third_party/WebKit/Source/platform/testing/PaintPrinters.cpp
+++ b/third_party/WebKit/Source/platform/testing/PaintPrinters.cpp
@@ -55,10 +55,33 @@ void PrintTo(const PaintChunk& chunk, std::ostream* os)
void PrintTo(const PaintChunkProperties& properties, std::ostream* os)
{
*os << "PaintChunkProperties(";
+ bool printedProperty = false;
if (properties.transform) {
*os << "transform=";
PrintTo(*properties.transform, os);
+ printedProperty = true;
}
+
+ if (properties.clip) {
+ if (printedProperty)
+ *os << ", ";
+ *os << "clip=";
+ PrintTo(*properties.clip, os);
+ printedProperty = true;
+ }
+
+ if (properties.effect) {
+ if (printedProperty)
+ *os << ", ";
+ *os << "effect=";
+ PrintTo(*properties.effect, os);
+ printedProperty = true;
+ }
+
+ if (printedProperty)
+ *os << ", ";
+ *os << "backfaceHidden=" << properties.backfaceHidden;
+
*os << ")";
}
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/PaintChunkProperties.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698