summaryrefslogtreecommitdiffstats
path: root/ui/gfx/transform.h
diff options
context:
space:
mode:
authorvollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-17 03:42:25 +0000
committervollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-17 03:42:25 +0000
commit3c2196b2ddfefbfa7887fb9ae223ad588c2a4ae7 (patch)
treef3065a662b44fe4922f22a2775730d9f71237732 /ui/gfx/transform.h
parent6a3a9694ec9156a50cdd73aac564d5cd1f167606 (diff)
downloadchromium_src-3c2196b2ddfefbfa7887fb9ae223ad588c2a4ae7.zip
chromium_src-3c2196b2ddfefbfa7887fb9ae223ad588c2a4ae7.tar.gz
chromium_src-3c2196b2ddfefbfa7887fb9ae223ad588c2a4ae7.tar.bz2
Adds a new layer animation element which owns an interpolated transform. This allows more control over the interpolation, and in particular, it allows for a rotation about a pivot.
BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=127269 Review URL: http://codereview.chromium.org/9704070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127337 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/transform.h')
-rw-r--r--ui/gfx/transform.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/gfx/transform.h b/ui/gfx/transform.h
index 4f830d5..e56696e 100644
--- a/ui/gfx/transform.h
+++ b/ui/gfx/transform.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -39,6 +39,9 @@ class UI_EXPORT Transform {
// Sets the rotation of the transformation.
void SetRotate(float degree);
+ // Sets the rotation of the transform (about a vector).
+ void SetRotateAbout(const gfx::Point3f& point, float degree);
+
// Sets the scaling parameters.
void SetScaleX(float x);
void SetScaleY(float y);
@@ -49,9 +52,12 @@ class UI_EXPORT Transform {
void SetTranslateY(float y);
void SetTranslate(float x, float y);
- // Applies rotation on the current transformation.
+ // Applies a rotation on the current transformation.
void ConcatRotate(float degree);
+ // Applies an axis-angle rotation on the current transformation.
+ void ConcatRotateAbout(const gfx::Point3f& point, float degree);
+
// Applies scaling on current transform.
void ConcatScale(float x, float y);