[M120 Migration] Fix Terms and Condition wizard shows transparent/white bg 41/306941/3
authorqiang.ji <qiang.ji@samsung.com>
Wed, 12 Apr 2023 02:12:39 +0000 (10:12 +0800)
committerBot Blink <blinkbot@samsung.com>
Thu, 29 Feb 2024 07:01:28 +0000 (07:01 +0000)
commit6cc826771ef7c096af87d57975b824e510dbae86
treeb7d7ede190dd323d0f54c34e4d09614283472780
parent5efe643b30fbe11a5be9a681ca2d7e30f1b89f0d
[M120 Migration] Fix Terms and Condition wizard shows transparent/white bg

As the viz strategy is totally updated, for bg logic, we need to flow below:

1. Set bg for Render CompositorFrame
EWebView::SetDrawsTransparentBackground -> WebFrameWidgetImpl::SetDrawsTransparentBackground
-> layer_tree_host -> CompositorFrameSinkImpl -> CompositorFrame with transparent bg
2. Set bg for Browser CompositorFrame
EWebView::SetDrawsTransparentBackground ->
RenderWidgetHostViewBase::SetBackgroundColor
2.1 RenderWidgetHostViewAura::UpdateBackgroundColor()
Compositor::SetBackgroundColor
layer_tree_host -> RootCompositorFrameSinkImpl -> CompositorFrame with transparent bg
2.2 RWHVAuraOffscreenHelperEfl::PaintTextureToSurface
RenderWidgetHostViewBase::GetBackgroundColor()
if set transparent bg, need to enable blend.

References:
https://review.tizen.org/gerrit/291210
https://review.tizen.org/gerrit/301497
https://review.tizen.org/gerrit/302739

Change-Id: I1b0650d5446917c6171df97eebef36c2f947f5fc
Signed-off-by: qiang.ji <qiang.ji@samsung.com>
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
content/browser/renderer_host/render_widget_host_view_aura.cc
third_party/blink/renderer/core/frame/web_frame_widget_impl.cc
tizen_src/chromium_impl/content/browser/renderer_host/rwhv_aura_offscreen_helper_efl.cc