Chromium Code Reviews| 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 : |
|
Ian Vollick
2013/03/06 23:29:45
nit: no space between the enumerators and the colo
wjmaclean
2013/03/07 13:49:29
Done.
|
| 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(); |
| + } |
| } |
| } |