[GS] Remove legacy game mode flag 66/317766/4 submit/tizen/20240918.160016
authorJakub Gajownik <j.gajownik2@samsung.com>
Mon, 5 Aug 2024 08:29:46 +0000 (10:29 +0200)
committerBot Blink <blinkbot@samsung.com>
Wed, 18 Sep 2024 16:12:39 +0000 (16:12 +0000)
Since old gamestreaming pipeline was removed to reduce
maintenance cost, all the related flags should also be
removed.

Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-578
Change-Id: Id711bad243911a3d713758f4e51ccf7159275529
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
media/base/media_switches.cc
media/base/media_switches.h
wrt/src/browser/tv/wrt_native_window_tv.cc

index 01e7c1fc465e31fc3a326d25472efcb0248ec9c0..59439c9d4b3413c799d25da99fd9a7d388a6846d 100644 (file)
@@ -233,7 +233,6 @@ const char kEnableLiveCaptionPrefForTesting[] =
 #if BUILDFLAG(IS_TIZEN)
 // Low latency mode for game
 const char kEnableGameMode[] = "enable-game-mode";
-const char kEnableLegacyGameMode[] = "enable-legacy-game-mode";
 const char kEnableNDecoding[] = "enable-n-decoding";
 const char kEnableUpstreamArchitecture[] = "enable-upstream-architecture";
 #endif
index ad150cde15c3b9bd444dcf192df099f75f04069a..2d7cee34fed688dbdfc490624c705a77bc278d7e 100644 (file)
@@ -97,7 +97,6 @@ MEDIA_EXPORT extern const char kEnableLiveCaptionPrefForTesting[];
 
 #if BUILDFLAG(IS_TIZEN)
 MEDIA_EXPORT extern const char kEnableGameMode[];
-MEDIA_EXPORT extern const char kEnableLegacyGameMode[];
 MEDIA_EXPORT extern const char kEnableNDecoding[];
 MEDIA_EXPORT extern const char kEnableUpstreamArchitecture[];
 #endif
index 61ac64b47abe76c0a9e69de7ca644e5fbbe71baa..28c2cc011dd84700e51b374f3edfab541c176d5b 100644 (file)
@@ -96,8 +96,6 @@ const char* kErrorPagePath = "http://samsung.com/tv/metadata/error.page";
 const char* kForceHideWindow =
     "http://samsung.com/tv/metadata/force.hide.window";
 const char* kGameMode = "http://samsung.com/tv/metadata/use.game.mode";
-const char* kLegacyGameMode =
-    "http://samsung.com/tv/metadata/use.legacy.game.mode";
 const char* kUpstreamArchitecture =
     "http://samsung.com/tv/metadata/use.upstream.architecture";
 const char* kNDecoding =
@@ -832,12 +830,10 @@ void WRTNativeWindowTV::SetAppMetaDataInfo() {
   }
 
   const bool enable_game_mode = (meta_data_info.GetValue(kGameMode) == "true");
-  const bool legacy_game_mode =
-      (meta_data_info.GetValue(kLegacyGameMode) == "true");
   const bool enable_upstream_architecture =
       (meta_data_info.GetValue(kUpstreamArchitecture) == "true");
 
-  if (enable_game_mode || legacy_game_mode) {
+  if (enable_game_mode) {
     auto current_command_line = base::CommandLine::ForCurrentProcess();
     current_command_line->AppendSwitch(switches::kEnableGameMode);
     base::FieldTrialList::CreateFieldTrial("WebRTC-ForceZeroDelayInGameMode",
@@ -853,11 +849,6 @@ void WRTNativeWindowTV::SetAppMetaDataInfo() {
     current_command_line->AppendSwitch(switches::kEnableNDecoding);
   }
 
-  if (legacy_game_mode) {
-    auto current_command_line = base::CommandLine::ForCurrentProcess();
-    current_command_line->AppendSwitch(switches::kEnableLegacyGameMode);
-  }
-
   if (enable_upstream_architecture || enable_game_mode) {
     auto current_command_line = base::CommandLine::ForCurrentProcess();
     LOG(INFO) << "Use upstream architecture";