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

Side by Side Diff: third_party/WebKit/Source/platform/testing/PaintPrinters.h

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, 2 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 unified diff | Download patch
OLDNEW
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 GeometryPrinters_h 5 #ifndef PaintPrinters_h
6 #define GeometryPrinters_h 6 #define PaintPrinters_h
7 7
8 #include "platform/geometry/FloatRoundedRect.h"
9 #include <iosfwd> 8 #include <iosfwd>
10 9
11 namespace blink { 10 namespace blink {
12 11
13 class FloatBox; 12 struct PaintChunk;
14 class FloatPoint; 13 struct PaintProperties;
15 class FloatPoint3D;
16 class FloatQuad;
17 class FloatRect;
18 class FloatSize;
19 class LayoutRect;
20 14
21 // GTest print support for geometry classes. 15 // GTest print support for geometry classes.
22 // 16 //
23 // To avoid ODR violations, these should also be declared in the respective 17 // To avoid ODR violations, these should also be declared in the respective
24 // headers defining these types. This is required because otherwise a template 18 // headers defining these types. This is required because otherwise a template
25 // instantiation may be instantiated differently, depending on whether this 19 // instantiation may be instantiated differently, depending on whether this
26 // declaration is found. 20 // declaration is found.
27 // 21 //
28 // As a result, it is not necessary to include this file in tests in order to 22 // As a result, it is not necessary to include this file in tests in order to
29 // use these printers. If, however, you get a link error about these symbols, 23 // use these printers. If, however, you get a link error about these symbols,
30 // you need to make sure the blink_platform_test_support target is linked in 24 // you need to make sure the blink_platform_test_support target is linked in
31 // your unit test binary. 25 // your unit test binary.
32 void PrintTo(const FloatBox&, std::ostream*); 26 void PrintTo(const PaintChunk&, std::ostream*);
33 void PrintTo(const FloatPoint&, std::ostream*); 27 void PrintTo(const PaintProperties&, std::ostream*);
34 void PrintTo(const FloatPoint3D&, std::ostream*);
35 void PrintTo(const FloatQuad&, std::ostream*);
36 void PrintTo(const FloatRect&, std::ostream*);
37 void PrintTo(const FloatRoundedRect&, std::ostream*);
38 void PrintTo(const FloatRoundedRect::Radii&, std::ostream*);
39 void PrintTo(const FloatSize&, std::ostream*);
40 void PrintTo(const LayoutRect&, std::ostream*);
41 28
42 } // namespace blink 29 } // namespace blink
43 30
44 #endif // GeometryPrinters_h 31 #endif // PaintPrinters_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698