From 07429c1c3f102164bf8019e947daeb3ffc3a024e Mon Sep 17 00:00:00 2001 From: Lau Ching Jun Date: Tue, 17 Dec 2019 17:27:02 -0800 Subject: [PATCH] Revert "[fuchsia] Do not Execute paint tasks when there is no vsync (#14298)" (#14541) This reverts commit 6430ecfd3902c52001c1ee70bd8fee33e143e2a9. --- .../platform/fuchsia/flutter/session_connection.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/shell/platform/fuchsia/flutter/session_connection.cc b/shell/platform/fuchsia/flutter/session_connection.cc index f79c5579c..e74243fed 100644 --- a/shell/platform/fuchsia/flutter/session_connection.cc +++ b/shell/platform/fuchsia/flutter/session_connection.cc @@ -63,14 +63,14 @@ void SessionConnection::Present( ToggleSignal(vsync_event_handle_, false); } else { PresentSession(); - - // Execute paint tasks and signal fences. - auto surfaces_to_submit = scene_update_context_.ExecutePaintTasks(frame); - - // Tell the surface producer that a present has occurred so it can perform - // book-keeping on buffer caches. - surface_producer_->OnSurfacesPresented(std::move(surfaces_to_submit)); } + + // Execute paint tasks and signal fences. + auto surfaces_to_submit = scene_update_context_.ExecutePaintTasks(frame); + + // Tell the surface producer that a present has occurred so it can perform + // book-keeping on buffer caches. + surface_producer_->OnSurfacesPresented(std::move(surfaces_to_submit)); } void SessionConnection::OnSessionSizeChangeHint(float width_change_factor,