| Index: cc/layer_tree_host.cc
|
| diff --git a/cc/layer_tree_host.cc b/cc/layer_tree_host.cc
|
| index fa09369e4dd53f2e33f792bcb31c4354088b3b36..4d935dfc09daf0dbddb7d68cf9b4c81260eef378 100644
|
| --- a/cc/layer_tree_host.cc
|
| +++ b/cc/layer_tree_host.cc
|
| @@ -887,10 +887,22 @@ void LayerTreeHost::setAnimationEventsRecursive(const AnimationEventsVector& eve
|
|
|
| for (size_t eventIndex = 0; eventIndex < events.size(); ++eventIndex) {
|
| if (layer->id() == events[eventIndex].layerId) {
|
| - if (events[eventIndex].type == AnimationEvent::Started)
|
| + switch (events[eventIndex].type) {
|
| + case AnimationEvent::Started:
|
| layer->notifyAnimationStarted(events[eventIndex], wallClockTime.ToDoubleT());
|
| - else
|
| + break;
|
| +
|
| + case AnimationEvent::Finished:
|
| layer->notifyAnimationFinished(wallClockTime.ToDoubleT());
|
| + break;
|
| +
|
| + case AnimationEvent::PropertyUpdate:
|
| + layer->notifyAnimationPropertyUpdate(events[eventIndex]);
|
| + break;
|
| +
|
| + default:
|
| + NOTREACHED();
|
| + }
|
| }
|
| }
|
|
|
|
|