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

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

Issue 1379883003: Create PaintChunk and begin writing code to build paint chunks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
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
new file mode 100644
index 0000000000000000000000000000000000000000..16d4667e2333eda925e94af0267a608abcb5cbe9
--- /dev/null
+++ b/third_party/WebKit/Source/platform/testing/PaintPrinters.cpp
@@ -0,0 +1,28 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "platform/testing/PaintPrinters.h"
+
+#include "platform/graphics/paint/PaintChunk.h"
+#include "platform/graphics/paint/PaintProperties.h"
+#include <ostream> // NOLINT
+
+namespace blink {
+
+void PrintTo(const PaintChunk& chunk, std::ostream* os)
+{
+ *os << "PaintChunk(begin=" << chunk.beginIndex
+ << ", end=" << chunk.endIndex
+ << ", props=";
+ PrintTo(chunk.properties, os);
+ *os << ")";
+}
+
+void PrintTo(const PaintProperties& properties, std::ostream* os)
+{
+ *os << "PaintProperties()";
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698