From a8139b67862dba255a7c847b3c202c6400571a07 Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Sat, 17 Aug 2019 01:48:28 -0700 Subject: [PATCH] [dynamic_thread_merging] Resubmit only on the frame where the merge (flutter/engine#11075) fixes https://github.com/flutter/flutter/issues/38735 --- .../darwin/ios/framework/Source/FlutterPlatformViews.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm index f2e79462b9..5bb5b411ef 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm @@ -182,10 +182,10 @@ PostPrerollResult FlutterPlatformViewsController::PostPrerollAction( } else { CancelFrame(); gpu_thread_merger->MergeWithLease(kDefaultMergedLeaseDuration); - return PostPrerollResult::kSuccess; + return PostPrerollResult::kResubmitFrame; } } - return PostPrerollResult::kResubmitFrame; + return PostPrerollResult::kSuccess; } void FlutterPlatformViewsController::PrerollCompositeEmbeddedView(