Index: ui/gfx/interpolated_transform.h |
diff --git a/ui/gfx/interpolated_transform.h b/ui/gfx/interpolated_transform.h |
index 8a93030d78488842b815a0c4df13b59c77b889ef..425748cdda380b3f5cfc9e9be18c31f3871cb227 100644 |
--- a/ui/gfx/interpolated_transform.h |
+++ b/ui/gfx/interpolated_transform.h |
@@ -10,6 +10,8 @@ |
#include "ui/gfx/point.h" |
#include "ui/gfx/point3_f.h" |
#include "ui/gfx/transform.h" |
+#include "ui/gfx/transform_util.h" |
+#include "ui/gfx/vector3d_f.h" |
namespace ui { |
@@ -46,12 +48,6 @@ class UI_EXPORT InterpolatedTransform { |
void SetReversed(bool reversed) { reversed_ = reversed; } |
bool Reversed() const { return reversed_; } |
- // NOTE: this function is soon to be deprecated. |
- static bool FactorTRS(const gfx::Transform& transform, |
- gfx::Point* translation, |
- float* rotation, |
- gfx::Point3F* scale); |
- |
protected: |
// Calculates the interpolated transform without considering our child. |
virtual gfx::Transform InterpolateButDoNotCompose(float t) const = 0; |
@@ -115,10 +111,10 @@ class UI_EXPORT InterpolatedRotation : public InterpolatedTransform { |
/////////////////////////////////////////////////////////////////////////////// |
class UI_EXPORT InterpolatedAxisAngleRotation : public InterpolatedTransform { |
public: |
- InterpolatedAxisAngleRotation(gfx::Point3F axis, |
+ InterpolatedAxisAngleRotation(gfx::Vector3dF axis, |
danakj
2012/11/16 19:46:12
const& to match ui/gfx style.
|
float start_degrees, |
float end_degrees); |
- InterpolatedAxisAngleRotation(gfx::Point3F axis, |
+ InterpolatedAxisAngleRotation(gfx::Vector3dF axis, |
danakj
2012/11/16 19:46:12
const&
|
float start_degrees, |
float end_degrees, |
float start_time, |
@@ -129,7 +125,7 @@ class UI_EXPORT InterpolatedAxisAngleRotation : public InterpolatedTransform { |
virtual gfx::Transform InterpolateButDoNotCompose(float t) const OVERRIDE; |
private: |
- gfx::Point3F axis_; |
+ gfx::Vector3dF axis_; |
const float start_degrees_; |
const float end_degrees_; |
@@ -240,17 +236,17 @@ class UI_EXPORT InterpolatedTransformAboutPivot : public InterpolatedTransform { |
DISALLOW_COPY_AND_ASSIGN(InterpolatedTransformAboutPivot); |
}; |
-class UI_EXPORT InterpolatedTRSTransform : public InterpolatedTransform { |
+class UI_EXPORT InterpolatedMatrixTransform : public InterpolatedTransform { |
public: |
- InterpolatedTRSTransform(const gfx::Transform& start_transform, |
- const gfx::Transform& end_transform); |
+ InterpolatedMatrixTransform(const gfx::Transform& start_transform, |
+ const gfx::Transform& end_transform); |
- InterpolatedTRSTransform(const gfx::Transform& start_transform, |
- const gfx::Transform& end_transform, |
- float start_time, |
- float end_time); |
+ InterpolatedMatrixTransform(const gfx::Transform& start_transform, |
+ const gfx::Transform& end_transform, |
+ float start_time, |
+ float end_time); |
- virtual ~InterpolatedTRSTransform(); |
+ virtual ~InterpolatedMatrixTransform(); |
protected: |
virtual gfx::Transform InterpolateButDoNotCompose(float t) const OVERRIDE; |
@@ -259,7 +255,8 @@ class UI_EXPORT InterpolatedTRSTransform : public InterpolatedTransform { |
void Init(const gfx::Transform& start_transform, |
const gfx::Transform& end_transform); |
- scoped_ptr<InterpolatedTransform> transform_; |
+ gfx::DecomposedTransform start_decomp_; |
+ gfx::DecomposedTransform end_decomp_; |
}; |
} // namespace ui |