| Index: cc/layer_tree_host.cc
|
| diff --git a/cc/layer_tree_host.cc b/cc/layer_tree_host.cc
|
| index 7f37e23cf88f20d46572ce9737202d3b2b74e544..7904378530e2716b944f99f52b6b61ea8612f07f 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();
|
| + }
|
| }
|
| }
|
|
|
|
|