Revert "[M120 Migration][WRTjs][VD] set screen solution for ultra width screen products" 79/309079/1 submit/tizen/20240404.160015
authorDongHyun Song <dh81.song@samsung.com>
Thu, 4 Apr 2024 09:34:43 +0000 (09:34 +0000)
committerDongHyun Song <dh81.song@samsung.com>
Thu, 4 Apr 2024 09:34:43 +0000 (09:34 +0000)
merged by mistake

This reverts commit 406a40ddf1570440ccc836ad4862941eb9265864.

Change-Id: Id72e75f0c9bb6b32b49800fea9f0a2f02ea74136

tizen_src/chromium_impl/ui/ozone/platform/efl/efl_screen.cc
tizen_src/chromium_impl/ui/ozone/platform/efl/efl_screen.h
wrt/src/browser/tv/wrt_native_window_tv.cc

index 840af03..5df11cb 100644 (file)
@@ -30,11 +30,6 @@ std::vector<EflScreen*> screen_list;
 }  // namespace
 
 // static
-void EflScreen::ClearCachedDisplaySize() {
-  screen_width = screen_height = 0;
-}
-
-// static
 gfx::Rect EflScreen::GetDisplaySize() {
   if (!screen_width || !screen_height) {
 #if defined(USE_WAYLAND)
index c5ce65d..ba37c4b 100644 (file)
@@ -21,7 +21,6 @@ namespace ui {
 class EflScreen : public PlatformScreen {
  public:
   static gfx::Rect GetDisplaySize();
-  static void ClearCachedDisplaySize();
 
   EflScreen();
 
index 27b07cf..5684d27 100644 (file)
@@ -81,8 +81,6 @@ const char* kProxyVconfKey = "memory/dnet/proxy";
 const char* kWebAppProxyVconfKey = "db/webapp/proxy";
 
 // metadata
-const char* kBaseScreenResolution =
-    "http://tizen.org/metadata/app_ui_type/base_screen_resolution";
 const char* kDualDecodingWebRTC =
     "http://samsung.com/tv/metadata/dual.decoding.support";
 const char* kContentZoomFill =
@@ -846,15 +844,6 @@ void WRTNativeWindowTV::SetAppMetaDataInfo() {
     LOG(INFO) << "zoom fill is " << zoom_fill;
     menu_zoom_fill_ = meta_data_info.GetValue(kContentZoomFill);
   }
-
-  auto base_screen_resolution = meta_data_info.GetValue(kBaseScreenResolution);
-  if (!base_screen_resolution.empty()) {
-    LOG(INFO) << "base screen resolution is " << base_screen_resolution;
-    int width = 1920, height = 1080;
-    ui::EflScreen::ClearCachedDisplaySize();
-    GetScreenResolution(width, height);
-    SetScreenResolution(width, height);
-  }
 }
 
 void WRTNativeWindowTV::SetAppMetaDataInfoRelatedWindow() {