summaryrefslogtreecommitdiffstats
path: root/cc/animation/keyframed_animation_curve.h
diff options
context:
space:
mode:
authorajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-15 22:03:14 +0000
committerajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-15 22:03:14 +0000
commitdb2586f0cdfde4c4dc873e3bcd1d856382d4d2fa (patch)
tree05e0953f2ca06ca716bf458ece2d0f16e89f691e /cc/animation/keyframed_animation_curve.h
parent61f697f26142f5081aaee176ccd82a2af170eabf (diff)
downloadchromium_src-db2586f0cdfde4c4dc873e3bcd1d856382d4d2fa.zip
chromium_src-db2586f0cdfde4c4dc873e3bcd1d856382d4d2fa.tar.gz
chromium_src-db2586f0cdfde4c4dc873e3bcd1d856382d4d2fa.tar.bz2
Compute bounds of animated layers
This adds support for computing the bounds of a box when transformed by the animations currently running on layer. This CL handles Scale and Translate animations, leaving other TransformOperations for future CLs. BUG=252472 Review URL: https://chromiumcodereview.appspot.com/21604002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217845 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/animation/keyframed_animation_curve.h')
-rw-r--r--cc/animation/keyframed_animation_curve.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/animation/keyframed_animation_curve.h b/cc/animation/keyframed_animation_curve.h
index 9dda773..5892dc7 100644
--- a/cc/animation/keyframed_animation_curve.h
+++ b/cc/animation/keyframed_animation_curve.h
@@ -135,6 +135,8 @@ class CC_EXPORT KeyframedTransformAnimationCurve
// TransformAnimationCurve implementation
virtual gfx::Transform GetValue(double t) const OVERRIDE;
+ virtual bool AnimatedBoundsForBox(const gfx::BoxF& box,
+ gfx::BoxF* bounds) const OVERRIDE;
private:
KeyframedTransformAnimationCurve();