OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_GFX_TRANSFORM_H_ | 5 #ifndef UI_GFX_TRANSFORM_H_ |
6 #define UI_GFX_TRANSFORM_H_ | 6 #define UI_GFX_TRANSFORM_H_ |
7 | 7 |
| 8 #include <iosfwd> |
8 #include <string> | 9 #include <string> |
9 | 10 |
10 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
11 #include "third_party/skia/include/utils/SkMatrix44.h" | 12 #include "third_party/skia/include/utils/SkMatrix44.h" |
12 #include "ui/gfx/gfx_export.h" | 13 #include "ui/gfx/gfx_export.h" |
13 #include "ui/gfx/vector2d_f.h" | 14 #include "ui/gfx/vector2d_f.h" |
14 | 15 |
15 namespace gfx { | 16 namespace gfx { |
16 | 17 |
17 class BoxF; | 18 class BoxF; |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 Point* point) const; | 262 Point* point) const; |
262 | 263 |
263 void TransformPointInternal(const SkMatrix44& xform, | 264 void TransformPointInternal(const SkMatrix44& xform, |
264 Point3F* point) const; | 265 Point3F* point) const; |
265 | 266 |
266 SkMatrix44 matrix_; | 267 SkMatrix44 matrix_; |
267 | 268 |
268 // copy/assign are allowed. | 269 // copy/assign are allowed. |
269 }; | 270 }; |
270 | 271 |
| 272 // This is declared here for use in gtest-based unit tests but is defined in |
| 273 // the gfx_test_support target. Depend on that to use this in your unit test. |
| 274 // This should not be used in production code - call ToString() instead. |
| 275 void PrintTo(const Transform& transform, ::std::ostream* os); |
| 276 |
271 } // namespace gfx | 277 } // namespace gfx |
272 | 278 |
273 #endif // UI_GFX_TRANSFORM_H_ | 279 #endif // UI_GFX_TRANSFORM_H_ |
OLD | NEW |