Chromium Code Reviews| Index: cc/layer.cc |
| diff --git a/cc/layer.cc b/cc/layer.cc |
| index c3ac483feff4ed32cdbb9bcea039615a86e435b4..939a1352e8f683ae33a4f336d45484c44e864ac7 100644 |
| --- a/cc/layer.cc |
| +++ b/cc/layer.cc |
| @@ -881,6 +881,12 @@ void Layer::notifyAnimationFinished(double wallClockTime) |
| m_layerAnimationDelegate->notifyAnimationFinished(wallClockTime); |
| } |
| +void Layer::notifyAnimationPropertyUpdate(const AnimationEvent& event) |
| +{ |
| + if (event.targetProperty == Animation::Opacity) |
| + setOpacity(event.value); |
| +} |
| + |
| void Layer::addLayerAnimationEventObserver(LayerAnimationEventObserver* animationObserver) |
| { |
| if (!m_layerAnimationObservers.HasObserver(animationObserver)) |