e_alpha_mask_rect: use e_view instead of ec->frame 92/323292/1
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 16 Apr 2025 04:41:17 +0000 (13:41 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Fri, 25 Apr 2025 07:25:30 +0000 (16:25 +0900)
use e_view api instead of use of ec->frame

Change-Id: I98c35d966f6dc6b024c3b30c18c2cc909ced07b4

src/bin/compmgr/e_alpha_mask_rect.c

index 8b30bf7003a4c0d74f56496296bc6b6c05a94df6..7a93953d74baae18facf55a06837104df7230f58 100644 (file)
@@ -41,8 +41,13 @@ _e_alpha_mask_rect_map_apply(E_Alpha_Mask_Rect *rect)
    E_Map *map = NULL, *new_map = NULL;
    Eina_Bool enable;
    int w, h;
+   E_View_Client *view_client;
+   E_View *view;
+
+   view_client = e_client_view_get(rect->ec);
+   view = e_view_client_view_get(view_client);
 
-   e_map_util_points_populate_from_object_full(rect->map, rect->ec->frame, 0);
+   e_map_util_points_populate_from_view_full(rect->map, view, 0);
 
    e_view_rect_size_get(rect->view, &w, &h);
    e_map_point_image_uv_set(rect->map, 0, 0, 0);
@@ -243,7 +248,7 @@ e_alpha_mask_rect_create(E_Client *ec)
    // TODO : view
    if (e_pixmap_resource_get(ec->pixmap))
      {
-        e_comp_object_native_surface_set(ec->frame, EINA_FALSE);
+        e_view_client_native_surface_set(view_client, EINA_FALSE);
         e_pixmap_image_refresh(ec->pixmap);
         e_view_client_damage(view_client, 0, 0, ec->w, ec->h);
         e_view_client_dirty(view_client);