81 if (host_config.isThreadNeeded(ThreadHost::Type::kPlatform)) {
83 CreateThread(Type::kPlatform, host_config.platform_config, host_config);
84 }
85
86 if (host_config.isThreadNeeded(ThreadHost::Type::kUi)) {
87 ui_thread = CreateThread(Type::kUi, host_config.ui_config, host_config);
88 }
89
92 CreateThread(
Type::kRaster, host_config.raster_config, host_config);
93 }
94
95 if (host_config.isThreadNeeded(ThreadHost::Type::kIo)) {
96 io_thread = CreateThread(Type::kIo, host_config.io_config, host_config);
97 }
98
99 if (host_config.isThreadNeeded(ThreadHost::Type::kProfiler)) {
101 CreateThread(Type::kProfiler, host_config.profiler_config, host_config);
102 }
103}
@ kRaster
Suitable for thread which raster data.
std::unique_ptr< fml::Thread > io_thread
std::unique_ptr< fml::Thread > platform_thread
std::unique_ptr< fml::Thread > profiler_thread
std::unique_ptr< fml::Thread > raster_thread
std::unique_ptr< fml::Thread > ui_thread