Chromium Code Reviews| 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 #ifndef PaintPrinters_h | 5 #ifndef PaintPrinters_h |
| 6 #define PaintPrinters_h | 6 #define PaintPrinters_h |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 struct PaintChunk; | 12 struct PaintChunk; |
| 13 struct PaintProperties; | 13 struct PaintProperties; |
| 14 class TransformationPaintProperty; | |
| 14 | 15 |
| 15 // GTest print support for platform paint classes. | 16 // GTest print support for platform paint classes. |
| 16 // | 17 // |
| 17 // To avoid ODR violations, these should also be declared in the respective | 18 // To avoid ODR violations, these should also be declared in the respective |
| 18 // headers defining these types. This is required because otherwise a template | 19 // headers defining these types. This is required because otherwise a template |
| 19 // instantiation may be instantiated differently, depending on whether this | 20 // instantiation may be instantiated differently, depending on whether this |
| 20 // declaration is found. | 21 // declaration is found. |
| 21 // | 22 // |
| 22 // As a result, it is not necessary to include this file in tests in order to | 23 // As a result, it is not necessary to include this file in tests in order to |
| 23 // use these printers. If, however, you get a link error about these symbols, | 24 // use these printers. If, however, you get a link error about these symbols, |
| 24 // you need to make sure the blink_platform_test_support target is linked in | 25 // you need to make sure the blink_platform_test_support target is linked in |
| 25 // your unit test binary. | 26 // your unit test binary. |
| 26 void PrintTo(const PaintChunk&, std::ostream*); | 27 void PrintTo(const PaintChunk&, std::ostream*); |
| 27 void PrintTo(const PaintProperties&, std::ostream*); | 28 void PrintTo(const PaintProperties&, std::ostream*); |
| 29 void PrintTo(const TransformationPaintProperty&, std::ostream*); | |
|
jbroman
2015/10/07 15:22:22
TransformPaintProperty and TransformationMatrix as
pdr.
2015/10/07 20:19:11
Surprised this compiled.
| |
| 28 | 30 |
| 29 } // namespace blink | 31 } // namespace blink |
| 30 | 32 |
| 31 #endif // PaintPrinters_h | 33 #endif // PaintPrinters_h |
| OLD | NEW |