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 ClipPaintPropertyNode; | 14 class ClipPaintPropertyNode; |
15 class TransformPaintPropertyNode; | 15 class TransformPaintPropertyNode; |
16 class EffectPaintPropertyNode; | 16 class EffectPaintPropertyNode; |
| 17 class ScrollPaintPropertyNode; |
17 | 18 |
18 // GTest print support for platform paint classes. | 19 // GTest print support for platform paint classes. |
19 // | 20 // |
20 // To avoid ODR violations, these should also be declared in the respective | 21 // To avoid ODR violations, these should also be declared in the respective |
21 // headers defining these types. This is required because otherwise a template | 22 // headers defining these types. This is required because otherwise a template |
22 // instantiation may be instantiated differently, depending on whether this | 23 // instantiation may be instantiated differently, depending on whether this |
23 // declaration is found. | 24 // declaration is found. |
24 // | 25 // |
25 // As a result, it is not necessary to include this file in tests in order to | 26 // As a result, it is not necessary to include this file in tests in order to |
26 // use these printers. If, however, you get a link error about these symbols, | 27 // use these printers. If, however, you get a link error about these symbols, |
27 // you need to make sure the blink_platform_test_support target is linked in | 28 // you need to make sure the blink_platform_test_support target is linked in |
28 // your unit test binary. | 29 // your unit test binary. |
29 void PrintTo(const ClipPaintPropertyNode&, std::ostream*); | 30 void PrintTo(const ClipPaintPropertyNode&, std::ostream*); |
30 void PrintTo(const PaintChunk&, std::ostream*); | 31 void PrintTo(const PaintChunk&, std::ostream*); |
31 void PrintTo(const PaintProperties&, std::ostream*); | 32 void PrintTo(const PaintProperties&, std::ostream*); |
32 void PrintTo(const TransformPaintPropertyNode&, std::ostream*); | 33 void PrintTo(const TransformPaintPropertyNode&, std::ostream*); |
33 void PrintTo(const EffectPaintPropertyNode&, std::ostream*); | 34 void PrintTo(const EffectPaintPropertyNode&, std::ostream*); |
| 35 void PrintTo(const ScrollPaintPropertyNode&, std::ostream*); |
34 | 36 |
35 } // namespace blink | 37 } // namespace blink |
36 | 38 |
37 #endif // PaintPrinters_h | 39 #endif // PaintPrinters_h |
OLD | NEW |