[M130 Migration][Plugin Hole] Fix plugin hole layer render issue 79/322879/2
authorchenhuasheng <hsheng.chen@samsung.com>
Thu, 17 Apr 2025 07:33:35 +0000 (15:33 +0800)
committerBot Blink <blinkbot@samsung.com>
Fri, 18 Apr 2025 02:51:13 +0000 (02:51 +0000)
In M108 the glrender change to skiarender, need use the correct
skia blend mode for hole layer.

reference:
https://archive.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/308482/

Change-Id: I56d56b024992e226438cd53cccd2fac79223ea60
Signed-off-by: chenhuasheng <hsheng.chen@samsung.com>
tizen_src/ewk/efl_integration/renderer/plugins/hole_layer.cc

index 55249ea34f43717fff8093b2394286652f606564..9bc2e58576b5d32850f4f13fd3dd6c95070987a1 100644 (file)
@@ -90,10 +90,19 @@ void HoleLayerImpl::AppendQuads(viz::CompositorRenderPass* render_pass,
                                 AppendQuadsData* append_quads_data) {
   viz::SharedQuadState* shared_quad_state =
       render_pass->CreateAndAppendSharedQuadState();
-  PopulateSharedQuadState(shared_quad_state, true);
 
-  AppendDebugBorderQuad(render_pass, gfx::Rect(bounds()), shared_quad_state,
-                        append_quads_data);
+  std::optional<gfx::Rect> clip_rect;
+  if (draw_properties().is_clipped) {
+    clip_rect = draw_properties().clip_rect;
+  }
+
+  shared_quad_state->SetAll(draw_properties().target_space_transform, gfx::Rect(bounds()),
+                draw_properties().visible_layer_rect,
+                draw_properties().mask_filter_info, clip_rect, true,
+                draw_properties().opacity,
+                SkBlendMode::kSrc,
+                GetSortingContextId(), static_cast<uint32_t>(id()),
+                draw_properties().is_fast_rounded_corner);
 
   AppendSolidQuads(render_pass, draw_properties().occlusion_in_content_space,
                    shared_quad_state, gfx::Rect(bounds()), background_color().toSkColor(),