| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "third_party/skia/include/utils/SkMatrix44.h" | 11 #include "third_party/skia/include/utils/SkMatrix44.h" |
| 12 #include "ui/gfx/gfx_export.h" | 12 #include "ui/gfx/gfx_export.h" |
| 13 #include "ui/gfx/vector2d_f.h" | 13 #include "ui/gfx/vector2d_f.h" |
| 14 | 14 |
| 15 namespace gfx { | 15 namespace gfx { |
| 16 | 16 |
| 17 class RectF; | 17 class RectF; |
| 18 class Point; | 18 class Point; |
| 19 class Point3F; | 19 class Point3F; |
| 20 class Vector3dF; | 20 class Vector3dF; |
| 21 | 21 |
| 22 // 4x4 transformation matrix. Transform is cheap and explicitly allows | 22 // 4x4 transformation matrix. Transform is cheap and explicitly allows |
| 23 // copy/assign. | 23 // copy/assign. |
| 24 class UI_EXPORT Transform { | 24 class GFX_EXPORT Transform { |
| 25 public: | 25 public: |
| 26 | 26 |
| 27 enum SkipInitialization { | 27 enum SkipInitialization { |
| 28 kSkipInitialization | 28 kSkipInitialization |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 Transform() : matrix_(SkMatrix44::kIdentity_Constructor) {} | 31 Transform() : matrix_(SkMatrix44::kIdentity_Constructor) {} |
| 32 | 32 |
| 33 // Skips initializing this matrix to avoid overhead, when we know it will be | 33 // Skips initializing this matrix to avoid overhead, when we know it will be |
| 34 // initialized before use. | 34 // initialized before use. |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 Point3F* point) const; | 243 Point3F* point) const; |
| 244 | 244 |
| 245 SkMatrix44 matrix_; | 245 SkMatrix44 matrix_; |
| 246 | 246 |
| 247 // copy/assign are allowed. | 247 // copy/assign are allowed. |
| 248 }; | 248 }; |
| 249 | 249 |
| 250 } // namespace gfx | 250 } // namespace gfx |
| 251 | 251 |
| 252 #endif // UI_GFX_TRANSFORM_H_ | 252 #endif // UI_GFX_TRANSFORM_H_ |
| OLD | NEW |