Index: cc/trees/proxy_impl.cc |
diff --git a/cc/trees/proxy_impl.cc b/cc/trees/proxy_impl.cc |
index 3a6f2db319847a10c0e1d43e28c366f80a0bb220..0917dbebdbbde22e83e3564bf9650020b279ed4a 100644 |
--- a/cc/trees/proxy_impl.cc |
+++ b/cc/trees/proxy_impl.cc |
@@ -618,16 +618,17 @@ DrawResult ProxyImpl::DrawAndSwapInternal(bool forced_draw) { |
} else { |
DCHECK_NE(DRAW_SUCCESS, result); |
} |
- layer_tree_host_impl_->DidDrawAllLayers(frame); |
- |
- bool start_ready_animations = draw_frame; |
- layer_tree_host_impl_->UpdateAnimationState(start_ready_animations); |
if (draw_frame) { |
if (layer_tree_host_impl_->SwapBuffers(frame)) |
scheduler_->DidSwapBuffers(); |
} |
+ layer_tree_host_impl_->DidDrawAllLayers(frame); |
+ |
+ bool start_ready_animations = draw_frame; |
+ layer_tree_host_impl_->UpdateAnimationState(start_ready_animations); |
+ |
// Tell the main thread that the the newly-commited frame was drawn. |
if (next_frame_is_newly_committed_frame_) { |
next_frame_is_newly_committed_frame_ = false; |