summaryrefslogtreecommitdiffstats
path: root/cc/animation/layer_animation_controller.cc
diff options
context:
space:
mode:
authorskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-28 19:16:42 +0000
committerskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-28 19:16:42 +0000
commitc23219664465d1fa295132ab4eede472b38ef6e9 (patch)
tree5b269f4ed61c1393773cfc8ff67aa8e5b6077773 /cc/animation/layer_animation_controller.cc
parentfda9e0f2b7efdf5bcff04df08570852e88ff60d4 (diff)
downloadchromium_src-c23219664465d1fa295132ab4eede472b38ef6e9.zip
chromium_src-c23219664465d1fa295132ab4eede472b38ef6e9.tar.gz
chromium_src-c23219664465d1fa295132ab4eede472b38ef6e9.tar.bz2
cc: Split animating and drawing into separate actions
Split impl-side animating and drawing into separate actions. This is needed to allow for the possibility of a commit between animating and drawing so that the main thread gets a chance to consume the new animation state. In particular this allows the main thread to synchronize with a fling animation using an onscroll handler. BUG=347366 Review URL: https://codereview.chromium.org/206793003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266624 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/animation/layer_animation_controller.cc')
-rw-r--r--cc/animation/layer_animation_controller.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/animation/layer_animation_controller.cc b/cc/animation/layer_animation_controller.cc
index 464801c..5a9337c 100644
--- a/cc/animation/layer_animation_controller.cc
+++ b/cc/animation/layer_animation_controller.cc
@@ -205,6 +205,7 @@ void LayerAnimationController::UpdateState(bool start_ready_animations,
if (!HasActiveValueObserver())
return;
+ DCHECK(last_tick_time_);
if (start_ready_animations)
PromoteStartedAnimations(last_tick_time_, events);