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

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: Remove duration parameters from the child and have the factory method pass it in. 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
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..7d84f7f950997a66613367faed56fed011037586 100644
--- a/ui/compositor/layer_animation_element.h
+++ b/ui/compositor/layer_animation_element.h
@@ -65,6 +65,14 @@ 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* CreateCounterTransformElement(
+ const gfx::Transform& parent_start,
+ const LayerAnimationElement* parent);
+
// 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

Powered by Google App Engine
This is Rietveld 408576698