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

Unified Diff: cc/layer.cc

Issue 12453010: Allow impl-only animations, and return opacity values via AnimationEvents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits, patch for submission. Created 7 years, 9 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 | « cc/layer.h ('k') | cc/layer_animation_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer.cc
diff --git a/cc/layer.cc b/cc/layer.cc
index 07c811b42256e2792d8ecf842316f469fd7e4e37..b08bbcdaa86d8acc77cc23998354c4582f5a5bce 100644
--- a/cc/layer.cc
+++ b/cc/layer.cc
@@ -874,6 +874,14 @@ void Layer::notifyAnimationFinished(double wallClockTime)
m_layerAnimationDelegate->notifyAnimationFinished(wallClockTime);
}
+void Layer::notifyAnimationPropertyUpdate(const AnimationEvent& event)
+{
+ if (event.targetProperty == Animation::Opacity)
+ setOpacity(event.opacity);
+ else
+ setTransform(event.transform);
+}
+
void Layer::addLayerAnimationEventObserver(LayerAnimationEventObserver* animationObserver)
{
if (!m_layerAnimationObservers.HasObserver(animationObserver))
« no previous file with comments | « cc/layer.h ('k') | cc/layer_animation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698