| Index: cc/trees/single_thread_proxy.cc
|
| diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
|
| index 755467a8ec98605ca13557e723448ffab5a01ba5..57f3557e0f5de49b8cd875f9694329b6d80abc2b 100644
|
| --- a/cc/trees/single_thread_proxy.cc
|
| +++ b/cc/trees/single_thread_proxy.cc
|
| @@ -520,9 +520,11 @@ bool SingleThreadProxy::DoComposite(
|
| layer_tree_host_impl_->CurrentFrameTime());
|
| UpdateBackgroundAnimateTicking();
|
|
|
| - layer_tree_host_impl_->PrepareToDraw(frame, device_viewport_damage_rect);
|
| - layer_tree_host_impl_->DrawLayers(frame, frame_begin_time);
|
| - layer_tree_host_impl_->DidDrawAllLayers(*frame);
|
| + if (!layer_tree_host_impl_->IsContextLost()) {
|
| + layer_tree_host_impl_->PrepareToDraw(frame, device_viewport_damage_rect);
|
| + layer_tree_host_impl_->DrawLayers(frame, frame_begin_time);
|
| + layer_tree_host_impl_->DidDrawAllLayers(*frame);
|
| + }
|
| lost_output_surface = layer_tree_host_impl_->IsContextLost();
|
|
|
| bool start_ready_animations = true;
|
|
|