From 4cdc58e2dc35057a41b151a4ee0559228e1b26f7 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)" (flutter/engine#14541) This reverts commit d1406230436f4cd97d63479d1100bf050167822a. --- .../platform/fuchsia/flutter/session_connection.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/engine/src/flutter/shell/platform/fuchsia/flutter/session_connection.cc b/engine/src/flutter/shell/platform/fuchsia/flutter/session_connection.cc index f79c5579cf..e74243fedb 100644 --- a/engine/src/flutter/shell/platform/fuchsia/flutter/session_connection.cc +++ b/engine/src/flutter/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,