From 4a1600715d2e87a5b923f8a82ff078a7fb1a8e17 Mon Sep 17 00:00:00 2001 From: xu Date: Fri, 2 Sep 2022 16:13:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0io=E7=BA=BF=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xu --- engine/flutter/shell/platform/ohos/ohos_shell_holder.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/flutter/shell/platform/ohos/ohos_shell_holder.cc b/engine/flutter/shell/platform/ohos/ohos_shell_holder.cc index 6eda07dd..11a3f261 100644 --- a/engine/flutter/shell/platform/ohos/ohos_shell_holder.cc +++ b/engine/flutter/shell/platform/ohos/ohos_shell_holder.cc @@ -41,8 +41,9 @@ OhosShellHolder::OhosShellHolder( type_mask |= ThreadHost::Type::UI; } if (!settings_.use_system_render_thread) { - type_mask |= ThreadHost::Type::GPU | ThreadHost::Type::IO; + type_mask |= ThreadHost::Type::GPU; } + type_mask |= ThreadHost::Type::IO; thread_host_ = {thread_label, type_mask}; } @@ -82,11 +83,10 @@ OhosShellHolder::OhosShellHolder( } if (!settings_.use_system_render_thread) { gpu_runner = thread_host_.gpu_thread->GetTaskRunner(); - io_runner = thread_host_.io_thread->GetTaskRunner(); } else { gpu_runner = ui_runner; - io_runner = ui_runner; } + io_runner = thread_host_.io_thread->GetTaskRunner(); } flutter::TaskRunners task_runners(thread_label, // label platform_runner, // platform -- Gitee