Currently, when a main thread scrolling reason gets added while there is a scroll offset animation running on CC, the animation is aborted on CC and finished on the MT.
The plumbing for aborting the animation goes through LayerImpl::set_main_thread_scrolling_reasons, which will go away soon.
The right thing to do is probably to plumb something through the animation pipeline.
Note that there are also no integration tests that check whether an aborted animation is completed on the main thread, so if LayerImpl goes away, we will loose the capability of sharing animations from cc->mt without any warning. The first step here is to probably write a test in animation_timeline_unittest.cc.
Comment 1 by bugdroid1@chromium.org
, Apr 28 2016