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

Unified Diff: ui/compositor/layer_animation_element.h

Issue 22861008: Add support for inverse transform animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add support for inverse transform animations. Created 7 years, 4 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/compositor/layer_animation_element.cc » ('j') | ui/compositor/layer_animation_element.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_animation_element.h
diff --git a/ui/compositor/layer_animation_element.h b/ui/compositor/layer_animation_element.h
index c5949d35e2120a48ef112996622f6159e00f1bba..3af1847e866aefac991b0e164fabcf5cff0e5e9e 100644
--- a/ui/compositor/layer_animation_element.h
+++ b/ui/compositor/layer_animation_element.h
@@ -65,6 +65,15 @@ class COMPOSITOR_EXPORT LayerAnimationElement {
const gfx::Transform& transform,
base::TimeDelta duration);
+ // Creates an element that counters a transition to the given transform. This
+ // should be used in tandem with an element created with
+ // CreateTransformElement with the same parameters. The caller owns the return
+ // value.
+ static LayerAnimationElement* CreateInverseTransformElement(
+ const gfx::Transform& parent_start,
+ const gfx::Transform& parent_end,
+ base::TimeDelta duration);
+
// Creates an element that transitions to another in a way determined by an
// interpolated transform. The element accepts ownership of the interpolated
// transform. NB: at every step, the interpolated transform clobbers the
« no previous file with comments | « no previous file | ui/compositor/layer_animation_element.cc » ('j') | ui/compositor/layer_animation_element.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698