Revert "[WRTjs][VD] Boost all thread for 60s for game app in lite board" 96/324196/2
authorwei li <wei90727.li@samsung.com>
Wed, 14 May 2025 01:51:45 +0000 (01:51 +0000)
committerwei li <wei90727.li@samsung.com>
Wed, 14 May 2025 02:12:59 +0000 (02:12 +0000)
This reverts commit 348ed8aa0e794c9a5adbc55c9266900368758e24.

Reason for revert:
This modification is related with media optimization, as I heard, SRPOL Media team hasn't applied such optimization in M120, so need pend this modification.

Change-Id: Icea9e8816be8ba18546fa1c1d2900b3e329cd051

wrt/src/browser/tv/wrt_native_window_tv.cc
wrt/src/common/tv/wrt_thread_booster.cc
wrt/src/common/tv/wrt_thread_booster.h

index 7b286dc3be50135f3275163d99b3f52454f1223a..63486e5ea492f1e227deb6fcc2957759855bc24a 100644 (file)
@@ -867,9 +867,6 @@ void WRTNativeWindowTV::SetAppMetaDataInfo() {
                                          "Enabled");
 
   if (enable_game_mode) {
-    if (IsLiteMemoryBoard())
-      WRT_thread_booster::GetInstance()->BoostUpAllThreads(60000);
-
     auto current_command_line = base::CommandLine::ForCurrentProcess();
     current_command_line->AppendSwitch(switches::kEnableGameMode);
     base::FieldTrialList::CreateFieldTrial("WebRTC-ForceZeroDelayInGameMode",
index 48a61a47c7a3857b5ac24989e949b66491af934b..7449ad56216f6adca62079fdf9421c0db264aab5 100644 (file)
@@ -126,17 +126,6 @@ void WRT_thread_booster::BoostUpByProNameTimeout(const std::string& name,
   boost_request_by_process_name(name.c_str(), (const boost_info_t*)&info);
 }
 
-void WRT_thread_booster::BoostUpAllThreads(int msec) {
-  boost_generic_info_t info;
-  info.parent.framework_type = BOOST_GENERIC;
-  info.event = BOOST_GENERIC_EVENT_USER_REQUEST_START;
-  info.group = BOOST_CGROUP_NORMAL;
-  info.sched = BOOST_API_SCHED_RR;
-  info.boostingTimeMs = msec;
-  LOG(INFO) << "boost up all threads timeout [" << msec << "] ms";
-  boost_request_by_pid(current_pid, (const boost_info_t*)&info);
-}
-
 #else
 WRT_thread_booster::WRT_thread_booster() {}
 void WRT_thread_booster::RegisterThreadByName(std::string name) {}
@@ -150,8 +139,6 @@ void WRT_thread_booster::BoostUpByThreadNameTimeout(std::string name,
                                                     int msec) {}
 void WRT_thread_booster::BoostUpByProNameTimeout(const std::string& name,
                                                  int msec) {}
-void WRT_thread_booster::BoostUpAllThreads(int msec) {}
-
 #endif
 
 }  // namespace wrt
index c0cb79c15a5c4286881c8886feb0ae0ba7c258db..9793f79de3135dfc171ad61661f71386e7aa8b9b 100644 (file)
@@ -26,8 +26,6 @@ class WRT_thread_booster {
   void BoostUpByThreadNameTimeout(std::string name, int msec);
   void BoostUpByProNameTimeout(const std::string& name, int msec);
 
-  void BoostUpAllThreads(int msec);
-
   WRT_thread_booster();
   ~WRT_thread_booster() = default;