| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "third_party/skia/include/utils/SkMatrix44.h" | 9 #include "third_party/skia/include/utils/SkMatrix44.h" |
| 10 #include "ui/ui_api.h" | 10 #include "ui/base/ui_export.h" |
| 11 | 11 |
| 12 namespace gfx { | 12 namespace gfx { |
| 13 class Rect; | 13 class Rect; |
| 14 class Point; | 14 class Point; |
| 15 class Point3f; | 15 class Point3f; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace ui { | 18 namespace ui { |
| 19 | 19 |
| 20 // 4x4 transformation matrix. Transform is cheap and explicitly allows | 20 // 4x4 transformation matrix. Transform is cheap and explicitly allows |
| 21 // copy/assign. | 21 // copy/assign. |
| 22 class UI_API Transform { | 22 class UI_EXPORT Transform { |
| 23 public: | 23 public: |
| 24 Transform(); | 24 Transform(); |
| 25 ~Transform(); | 25 ~Transform(); |
| 26 | 26 |
| 27 bool operator==(const Transform& rhs) const; | 27 bool operator==(const Transform& rhs) const; |
| 28 bool operator!=(const Transform& rhs) const; | 28 bool operator!=(const Transform& rhs) const; |
| 29 | 29 |
| 30 // NOTE: The 'Set' functions overwrite the previously set transformation | 30 // NOTE: The 'Set' functions overwrite the previously set transformation |
| 31 // parameters. The 'Concat' functions apply a transformation (e.g. rotation, | 31 // parameters. The 'Concat' functions apply a transformation (e.g. rotation, |
| 32 // scale, translate) on top of the existing transforms, instead of overwriting | 32 // scale, translate) on top of the existing transforms, instead of overwriting |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 gfx::Point3f& point) const; | 108 gfx::Point3f& point) const; |
| 109 | 109 |
| 110 SkMatrix44 matrix_; | 110 SkMatrix44 matrix_; |
| 111 | 111 |
| 112 // copy/assign are allowed. | 112 // copy/assign are allowed. |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 }// namespace ui | 115 }// namespace ui |
| 116 | 116 |
| 117 #endif // UI_GFX_TRANSFORM_H_ | 117 #endif // UI_GFX_TRANSFORM_H_ |
| OLD | NEW |