[fuchsia] Do not Execute paint tasks when there is no vsync (flutter/engine#14298)

This should also reduce the number of OnSurfacesPresented calls
made.
This commit is contained in:
Kaushik Iska
2019-12-10 18:03:55 -08:00
committed by GitHub
parent a72d627995
commit d140623043

View File

@@ -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,