e_compositor: Add e_surface_opaque_region_get 91/315791/1
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 22 Aug 2024 00:30:29 +0000 (09:30 +0900)
committerSeunghun Lee <shiin@samsung.com>
Wed, 4 Dec 2024 23:45:30 +0000 (08:45 +0900)
Change-Id: I6f2c352b1e6aa6ef3c36c0b7a3a5d2b533a03b4c

src/bin/server/e_compositor.c
src/bin/server/e_compositor_intern.h

index 8e532de3f282a844c084a2c057441b4ff81566bb..f05561756a29c7fe265efde3fa15203f66f57c4c 100644 (file)
@@ -649,6 +649,15 @@ e_surface_damage_empty(E_Surface *surface)
       !pixman_region32_not_empty(&surface->ds_surface->current.surface_damage);
 }
 
+EINTERN pixman_region32_t *
+e_surface_opaque_region_get(E_Surface *surface)
+{
+   if (!surface->ds_surface)
+     return NULL;
+
+   return &surface->ds_surface->current.opaque;
+}
+
 EINTERN E_Subsurface *
 e_subsurface_try_from_surface(E_Surface *surface)
 {
index c5f7d008551b2e1f79d6e60a94caaa2e81ffe4a2..999f679d623e4e80d1a2514c992ac244c583508f 100644 (file)
@@ -49,6 +49,7 @@ void e_surface_frame_done_send(E_Surface *surface);
 Eina_Bool e_surface_damage_empty(E_Surface *surface);
 pixman_region32_t *e_surface_buffer_damage_get(E_Surface *surface);
 pixman_region32_t *e_surface_surface_damage_get(E_Surface *surface);
+pixman_region32_t *e_surface_opaque_region_get(E_Surface *surface);
 
 E_Subsurface *e_subsurface_create(struct wl_resource *factory_resource, uint32_t id, E_Surface *surface, E_Surface *parent);
 E_Subsurface *e_subsurface_from_resource(struct wl_resource *resource);