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

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahwilliams committed Jul 3, 2024
1 parent cc89d93 commit f694e21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shell/platform/darwin/ios/framework/Source/FlutterEngine.mm
Original file line number Diff line number Diff line change
Expand Up @@ -800,24 +800,24 @@ + (NSString*)generateThreadLabel:(NSString*)labelPrefix {
threadHostType = threadHostType | flutter::ThreadHost::Type::kProfiler;
}

flutter::ThreadHost::ThreadHostConfig host_config(threadLabel.UTF8String, threadHostType,
flutter::ThreadHost::ThreadHostConfig host_config(thread_label.UTF8String, threadHostType,
IOSPlatformThreadConfigSetter);

if (!settings.merged_platform_ui_thread) {
host_config.ui_config =
fml::Thread::ThreadConfig(flutter::ThreadHost::ThreadHostConfig::MakeThreadName(
flutter::ThreadHost::Type::kUi, threadLabel.UTF8String),
flutter::ThreadHost::Type::kUi, thread_label.UTF8String),
fml::Thread::ThreadPriority::kDisplay);
}

host_config.raster_config =
fml::Thread::ThreadConfig(flutter::ThreadHost::ThreadHostConfig::MakeThreadName(
flutter::ThreadHost::Type::kRaster, threadLabel.UTF8String),
flutter::ThreadHost::Type::kRaster, thread_label.UTF8String),
fml::Thread::ThreadPriority::kRaster);

host_config.io_config =
fml::Thread::ThreadConfig(flutter::ThreadHost::ThreadHostConfig::MakeThreadName(
flutter::ThreadHost::Type::kIo, threadLabel.UTF8String),
flutter::ThreadHost::Type::kIo, thread_label.UTF8String),
fml::Thread::ThreadPriority::kNormal);

return (flutter::ThreadHost){host_config};
Expand Down

0 comments on commit f694e21

Please sign in to comment.