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 "third_party/skia/include/utils/SkMatrix44.h" | 8 #include "third_party/skia/include/utils/SkMatrix44.h" |
9 #include "ui/base/ui_export.h" | 9 #include "ui/base/ui_export.h" |
10 | 10 |
11 namespace gfx { | 11 namespace gfx { |
12 | |
12 class Rect; | 13 class Rect; |
13 class Point; | 14 class Point; |
14 class Point3f; | 15 class Point3f; |
15 } | |
16 | |
17 namespace ui { | |
18 | 16 |
19 // 4x4 transformation matrix. Transform is cheap and explicitly allows | 17 // 4x4 transformation matrix. Transform is cheap and explicitly allows |
20 // copy/assign. | 18 // copy/assign. |
21 class UI_EXPORT Transform { | 19 class UI_EXPORT Transform { |
22 public: | 20 public: |
23 Transform(); | 21 Transform(); |
24 ~Transform(); | 22 ~Transform(); |
25 | 23 |
26 bool operator==(const Transform& rhs) const; | 24 bool operator==(const Transform& rhs) const; |
27 bool operator!=(const Transform& rhs) const; | 25 bool operator!=(const Transform& rhs) const; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
118 gfx::Point& point) const; | 116 gfx::Point& point) const; |
119 | 117 |
120 void TransformPointInternal(const SkMatrix44& xform, | 118 void TransformPointInternal(const SkMatrix44& xform, |
121 gfx::Point3f& point) const; | 119 gfx::Point3f& point) const; |
122 | 120 |
123 SkMatrix44 matrix_; | 121 SkMatrix44 matrix_; |
124 | 122 |
125 // copy/assign are allowed. | 123 // copy/assign are allowed. |
126 }; | 124 }; |
127 | 125 |
128 }// namespace ui | 126 }// namespace gfx |
tfarina
2012/10/11 22:38:21
nit: add two spaces between } and //
| |
129 | 127 |
130 #endif // UI_GFX_TRANSFORM_H_ | 128 #endif // UI_GFX_TRANSFORM_H_ |
OLD | NEW |