From b7dd634c118395bbbd37ebd841638a44fa65317e Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 30 Jan 2024 20:22:22 +0800 Subject: [PATCH] =?UTF-8?q?rtg=20=E5=88=87=E5=90=8E=E5=8F=B0=E5=88=A0?= =?UTF-8?q?=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Brian --- services/src/concurrent_task_controller.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/services/src/concurrent_task_controller.cpp b/services/src/concurrent_task_controller.cpp index 8eb4245..6379e3b 100644 --- a/services/src/concurrent_task_controller.cpp +++ b/services/src/concurrent_task_controller.cpp @@ -454,7 +454,7 @@ void TaskController::NewBackground(int uid, int pid) } for (auto iter = foregroundApp_.begin(); iter != foregroundApp_.end(); iter++) { if (iter->GetPid() == pid) { - iter->EndScene(); + foregroundApp_.erase(iter); return; } } @@ -825,8 +825,6 @@ bool ForegroundAppRecord::BeginScene() CONCUR_LOGI("Error begin scene in pid %{public}d", pid_); return false; } - OHOS::RME::BeginFrameFreq(0); - OHOS::RME::EndFrameFreq(0); return true; } -- Gitee