[Plugin Hole] Fix plugin hole layer render issue 82/308482/2
authorLizhi Fan <lizhi.fan@samsung.com>
Tue, 26 Mar 2024 08:44:15 +0000 (16:44 +0800)
committerBot Blink <blinkbot@samsung.com>
Mon, 1 Apr 2024 11:01:42 +0000 (11:01 +0000)
In M108 the glrender change to skiarender, need use the correct
skia blend mode for hole layer.

Change-Id: I8f42322bf82185c447f1e934a24c3e7ce2cdc87c
Signed-off-by: Lizhi Fan <lizhi.fan@samsung.com>
tizen_src/ewk/efl_integration/renderer/plugins/hole_layer.cc

index 229112d..2bf498b 100644 (file)
@@ -89,10 +89,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);
+  absl::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(),