Enable sync for roseM to fix flicker while playing 4k/8k video 12/320412/4
authorQiang Ji <qiang.ji@samsung.com>
Fri, 15 Nov 2024 02:17:52 +0000 (10:17 +0800)
committerBot Blink <blinkbot@samsung.com>
Fri, 15 Nov 2024 07:42:23 +0000 (07:42 +0000)
Change-Id: I13f58da22034627515a84af4984ed1df9d920ea8
Signed-off-by: Qiang Ji <qiang.ji@samsung.com>
components/viz/service/display_embedder/skia_output_device_offscreen.cc
components/viz/service/display_embedder/skia_output_device_offscreen.h

index 1663da2954fef5362adee41cc04415b51f9f8ba2..d56a2a539bd00d39fb84386ecd53ae6c1d55305f 100644 (file)
@@ -61,6 +61,9 @@ SkiaOutputDeviceOffscreen::SkiaOutputDeviceOffscreen(
       kBGRA_8888_SkColorType;
   capabilities_.sk_color_types[static_cast<int>(gfx::BufferFormat::BGRX_8888)] =
       kBGRA_8888_SkColorType;
+#if BUILDFLAG(IS_TIZEN_TV)
+  chipset = GetTVChipset();
+#endif
 }
 
 SkiaOutputDeviceOffscreen::~SkiaOutputDeviceOffscreen() {
@@ -100,8 +103,8 @@ void SkiaOutputDeviceOffscreen::Present(
 #if BUILDFLAG(IS_TIZEN_TV)
   // Enable sync for oscarp and rosep, or it will flicker while
   // playing some 4k&8k videos.
-  const std::string chipset = GetTVChipset();
-  if (blink::IsWebBrowser() && (chipset == "OSCARP" || chipset == "ROSEP"))
+  if (blink::IsWebBrowser() &&
+      (chipset == "OSCARP" || chipset == "ROSEP" || chipset == "ROSEM"))
     last_swapped_buffer_need_sync_ = true;
   else
 #endif
index 274f041040de7d2f2e55952584cc9be966e88d3c..e14791eb9630fcd2d102f862c98098525e63a0fa 100644 (file)
@@ -83,6 +83,9 @@ class SkiaOutputDeviceOffscreen : public SkiaOutputDevice {
 
  private:
   uint64_t backbuffer_estimated_size_ = 0;
+#if BUILDFLAG(IS_TIZEN_TV)
+  std::string chipset;
+#endif
 };
 
 }  // namespace viz