From bc29baa16348afe1de1e4599277982634431a824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=89=B3=E7=A5=A5?= <1692917358@qq.com> Date: Sat, 13 Sep 2025 11:40:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=9C=BC=E9=95=9C=E7=9B=B8=E6=9C=BA?= =?UTF-8?q?=E6=8F=90=E9=A2=91=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张艳祥 <1692917358@qq.com> --- bundle.json | 3 ++- ressched/plugins/socperf_plugin/BUILD.gn | 8 ++++++++ ressched/plugins/socperf_plugin/src/socperf_plugin.cpp | 3 +++ ressched/ressched.gni | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/bundle.json b/bundle.json index 39a701e2..d4e2b3ed 100644 --- a/bundle.json +++ b/bundle.json @@ -25,7 +25,8 @@ "resource_schedule_service_crown_power_key_enable", "resource_schedule_service_file_copy_soc_perf_enable", "resource_schedule_service_subscribe_click_recognize_enable", - "resource_schedule_service_system_load_level_debug_feature_enable_for_2d" + "resource_schedule_service_system_load_level_debug_feature_enable_for_2d", + "resource_schedule_service_xr_glasses_soc_perf_enable" ], "adapted_system_type": [ "standard" diff --git a/ressched/plugins/socperf_plugin/BUILD.gn b/ressched/plugins/socperf_plugin/BUILD.gn index 9e8b5e06..0bba94f5 100644 --- a/ressched/plugins/socperf_plugin/BUILD.gn +++ b/ressched/plugins/socperf_plugin/BUILD.gn @@ -57,6 +57,10 @@ ohos_shared_library("socperf_plugin") { resource_schedule_service_file_copy_soc_perf_enable) { defines += [ "RESSCHED_RESOURCESCHEDULE_FILE_COPY_SOC_PERF_ENABLE" ] } + if (ressched_with_resourceschedule_soc_perf_enable && + resource_schedule_service_xr_glasses_soc_perf_enable) { + defines += [ "RESSCHED_RESOURCESCHEDULE_XR_GLASSES_SOC_PERF_ENABLE" ] + } subsystem_name = "resourceschedule" part_name = "resource_schedule_service" branch_protector_ret = "pac_ret" @@ -108,6 +112,10 @@ ohos_static_library("socperf_plugin_static") { resource_schedule_service_file_copy_soc_perf_enable) { defines += [ "RESSCHED_RESOURCESCHEDULE_FILE_COPY_SOC_PERF_ENABLE" ] } + if (ressched_with_resourceschedule_soc_perf_enable && + resource_schedule_service_xr_glasses_soc_perf_enable) { + defines += [ "RESSCHED_RESOURCESCHEDULE_XR_GLASSES_SOC_PERF_ENABLE" ] + } subsystem_name = "resourceschedule" part_name = "resource_schedule_service" branch_protector_ret = "pac_ret" diff --git a/ressched/plugins/socperf_plugin/src/socperf_plugin.cpp b/ressched/plugins/socperf_plugin/src/socperf_plugin.cpp index cb8c418c..6dbf6a7d 100644 --- a/ressched/plugins/socperf_plugin/src/socperf_plugin.cpp +++ b/ressched/plugins/socperf_plugin/src/socperf_plugin.cpp @@ -1428,6 +1428,9 @@ bool SocPerfPlugin::UpdateCustGameState(const std::shared_ptr& data) bool SocPerfPlugin::IsAllowBoostScene() { +#ifdef RESSCHED_RESOURCESCHEDULE_XR_GLASSES_SOC_PERF_ENABLE + return true; +#endif bool ret = false; if (focusAppUids_.empty()) { return ret; diff --git a/ressched/ressched.gni b/ressched/ressched.gni index 3399cd38..4ebbd094 100644 --- a/ressched/ressched.gni +++ b/ressched/ressched.gni @@ -49,6 +49,7 @@ declare_args() { resource_schedule_service_file_copy_soc_perf_enable = false resource_schedule_service_subscribe_click_recognize_enable = false resource_schedule_service_system_load_level_debug_feature_enable_for_2d = false + resource_schedule_service_xr_glasses_soc_perf_enable = false if (defined(global_parts_info) && !defined(global_parts_info.telephony_state_registry)) { -- Gitee From 1d5a4ea9f979a28c9065f37d6c26f235ac3a7b3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=89=B3=E7=A5=A5?= <1692917358@qq.com> Date: Sat, 13 Sep 2025 14:21:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=9C=BC=E9=95=9C=E7=9B=B8=E6=9C=BA?= =?UTF-8?q?=E6=8F=90=E9=A2=91=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张艳祥 <1692917358@qq.com> --- ressched/plugins/socperf_plugin/src/socperf_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ressched/plugins/socperf_plugin/src/socperf_plugin.cpp b/ressched/plugins/socperf_plugin/src/socperf_plugin.cpp index 6dbf6a7d..4b87f904 100644 --- a/ressched/plugins/socperf_plugin/src/socperf_plugin.cpp +++ b/ressched/plugins/socperf_plugin/src/socperf_plugin.cpp @@ -1430,7 +1430,7 @@ bool SocPerfPlugin::IsAllowBoostScene() { #ifdef RESSCHED_RESOURCESCHEDULE_XR_GLASSES_SOC_PERF_ENABLE return true; -#endif +#endif bool ret = false; if (focusAppUids_.empty()) { return ret; -- Gitee