[M120 Migration] fixup! Skip flushAndSubmit sync call on gpu side for webgl 52/309452/2
authorQiang Ji <qiang.ji@samsung.com>
Thu, 11 Apr 2024 02:32:01 +0000 (10:32 +0800)
committerBot Blink <blinkbot@samsung.com>
Thu, 11 Apr 2024 18:51:42 +0000 (18:51 +0000)
Below change enables flushAndSubmit call for video layer which fixes
video frame not shown issue in hbbtv scenario.

refs:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/292736/

Change-Id: Ie8dbe77c63b1a8d1dc05c48139a8e2d8618619e6
Signed-off-by: Qiang Ji <qiang.ji@samsung.com>
cc/trees/layer_tree_host_impl.cc

index 38e0e67..3e7b624 100644 (file)
@@ -2623,7 +2623,7 @@ absl::optional<LayerTreeHostImpl::SubmitInfo> LayerTreeHostImpl::DrawLayers(
 
 #if BUILDFLAG(IS_EFL)
 bool LayerTreeHostImpl::CanSkipFlush() const {
-  if (active_tree_->HasLayer(LAYER_TYPE_TEXTURE | LAYER_TYPE_VIDEO))
+  if (active_tree_->HasLayer(LAYER_TYPE_TEXTURE))
     return true;
   return false;
 }