| 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
|
|
|