Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit e1f5dbd

Browse files
author
Kaushik Iska
committed
[fuchsia] Do not Execute paint tasks when there is no vsync
This should also reduce the number of OnSurfacesPresented calls made.
1 parent 76d264e commit e1f5dbd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

shell/platform/fuchsia/flutter/session_connection.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ void SessionConnection::Present(
6363
ToggleSignal(vsync_event_handle_, false);
6464
} else {
6565
PresentSession();
66-
}
6766

68-
// Execute paint tasks and signal fences.
69-
auto surfaces_to_submit = scene_update_context_.ExecutePaintTasks(frame);
67+
// Execute paint tasks and signal fences.
68+
auto surfaces_to_submit = scene_update_context_.ExecutePaintTasks(frame);
7069

71-
// Tell the surface producer that a present has occurred so it can perform
72-
// book-keeping on buffer caches.
73-
surface_producer_->OnSurfacesPresented(std::move(surfaces_to_submit));
70+
// Tell the surface producer that a present has occurred so it can perform
71+
// book-keeping on buffer caches.
72+
surface_producer_->OnSurfacesPresented(std::move(surfaces_to_submit));
73+
}
7474
}
7575

7676
void SessionConnection::OnSessionSizeChangeHint(float width_change_factor,

0 commit comments

Comments
 (0)