| Index: cc/trees/layer_tree_host.cc
|
| diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
|
| index aafcd8dcd458f446b06646b9babb914ab158370e..d0ae7392d008b50d42e17b48600c2683583600cd 100644
|
| --- a/cc/trees/layer_tree_host.cc
|
| +++ b/cc/trees/layer_tree_host.cc
|
| @@ -1467,6 +1467,28 @@ void LayerTreeHost::ElementOpacityIsAnimatingChanged(
|
| }
|
| }
|
|
|
| +void LayerTreeHost::ElementFilterIsAnimatingChanged(
|
| + ElementId element_id,
|
| + ElementListType list_type,
|
| + AnimationChangeType change_type,
|
| + bool is_animating) {
|
| + Layer* layer = LayerByElementId(element_id);
|
| + if (layer) {
|
| + switch (change_type) {
|
| + case AnimationChangeType::POTENTIAL:
|
| + layer->OnFilterIsPotentiallyAnimatingChanged(is_animating);
|
| + break;
|
| + case AnimationChangeType::RUNNING:
|
| + layer->OnFilterIsCurrentlyAnimatingChanged(is_animating);
|
| + break;
|
| + case AnimationChangeType::BOTH:
|
| + layer->OnFilterIsPotentiallyAnimatingChanged(is_animating);
|
| + layer->OnFilterIsCurrentlyAnimatingChanged(is_animating);
|
| + break;
|
| + }
|
| + }
|
| +}
|
| +
|
| gfx::ScrollOffset LayerTreeHost::GetScrollOffsetForAnimation(
|
| ElementId element_id) const {
|
| Layer* layer = LayerByElementId(element_id);
|
|
|