From 93a9437961795b67fea409723cfa86a0b2b34173 Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Mon, 19 Aug 2019 11:29:51 -0700 Subject: [PATCH] [b/139487101] Dont present session twice --- shell/platform/fuchsia/flutter/session_connection.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/shell/platform/fuchsia/flutter/session_connection.cc b/shell/platform/fuchsia/flutter/session_connection.cc index 32d5a849c9ea4..b212824150065 100644 --- a/shell/platform/fuchsia/flutter/session_connection.cc +++ b/shell/platform/fuchsia/flutter/session_connection.cc @@ -52,6 +52,7 @@ void SessionConnection::Present( TRACE_EVENT0("gfx", "SessionConnection::Present"); TRACE_FLOW_BEGIN("gfx", "SessionConnection::PresentSession", next_present_session_trace_id_); + next_present_session_trace_id_++; // Throttle vsync if presentation callback is already pending. This allows // the paint tasks for this frame to execute in parallel with presentation @@ -64,11 +65,6 @@ void SessionConnection::Present( PresentSession(); } - // Flush all session ops. Paint tasks have not yet executed but those are - // fenced. The compositor can start processing ops while we finalize paint - // tasks. - PresentSession(); - // Execute paint tasks and signal fences. auto surfaces_to_submit = scene_update_context_.ExecutePaintTasks(frame);