Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(842)

Unified Diff: ui/gfx/interpolated_transform.h

Issue 642323002: Extending support for 3d in gfx::InterpolatedScale and gfx::InterpolatedTranslation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding unit_tests Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gfx/interpolated_transform.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/interpolated_transform.h
diff --git a/ui/gfx/interpolated_transform.h b/ui/gfx/interpolated_transform.h
index 6b7d0aaa032c190a481c55330cd692a77afcd362..441af3819a6a14bb142d47b4fe34b8001b13ea90 100644
--- a/ui/gfx/interpolated_transform.h
+++ b/ui/gfx/interpolated_transform.h
@@ -169,14 +169,20 @@ class GFX_EXPORT InterpolatedTranslation : public InterpolatedTransform {
const gfx::Point& end_pos,
float start_time,
float end_time);
+ InterpolatedTranslation(const gfx::Point3F& start_pos,
+ const gfx::Point3F& end_pos);
+ InterpolatedTranslation(const gfx::Point3F& start_pos,
+ const gfx::Point3F& end_pos,
+ float start_time,
+ float end_time);
virtual ~InterpolatedTranslation();
protected:
virtual gfx::Transform InterpolateButDoNotCompose(float t) const override;
private:
- const gfx::Point start_pos_;
- const gfx::Point end_pos_;
+ const gfx::Point3F start_pos_;
+ const gfx::Point3F end_pos_;
DISALLOW_COPY_AND_ASSIGN(InterpolatedTranslation);
};
« no previous file with comments | « no previous file | ui/gfx/interpolated_transform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698