e_comp_object: add e_comp_object_image_filter_get 96/236996/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 23 Jun 2020 10:55:25 +0000 (19:55 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 24 Jun 2020 04:29:08 +0000 (13:29 +0900)
Change-Id: I1a400d134b6241724f5d5358777e17e2ba96facd

src/bin/e_comp_object.c
src/bin/e_comp_object.h

index 5d0496b7dc2ce59ed38964cbac807da77841ebdb..b95f91a89c942266e788748e6abe6a75711f8bef 100644 (file)
@@ -161,6 +161,7 @@ typedef struct _E_Comp_Object
    Eina_Bool            render_trace : 1; // trace co->obj rendering on canvas
 
    tbm_surface_h        tbm_surface;
+   E_Comp_Image_Filter  image_filter;
 } E_Comp_Object;
 
 typedef struct _E_Input_Rect_Data
@@ -6076,5 +6077,19 @@ e_comp_object_image_filter_set(Evas_Object *obj, E_Comp_Image_Filter filter)
          break;
      }
 
+   cw->image_filter = filter;
+
    return EINA_TRUE;
 }
+
+EINTERN E_Comp_Image_Filter
+e_comp_object_image_filter_get(Evas_Object *obj)
+{
+   API_ENTRY E_COMP_IMAGE_FILTER_NONE;
+   EINA_SAFETY_ON_NULL_RETURN_VAL(cw->ec, E_COMP_IMAGE_FILTER_NONE);
+
+   if ((!cw->ec->comp_data) || (e_object_is_del(E_OBJECT(cw->ec))))
+     return E_COMP_IMAGE_FILTER_NONE;
+
+   return cw->image_filter;
+}
index c2dde835c610599ef92bd1029c68aa3b2b882b73..3434715d9d6753d720f2657fa552875c1e08c9b4 100644 (file)
@@ -197,6 +197,7 @@ EINTERN Eina_Bool e_comp_object_render_trace_set(Evas_Object *obj, Eina_Bool set
 E_API Eina_Bool e_comp_object_native_usable_get(Evas_Object *obj);
 
 E_API Eina_Bool e_comp_object_image_filter_set(Evas_Object *obj, E_Comp_Image_Filter filter);
+EINTERN E_Comp_Image_Filter e_comp_object_image_filter_get(Evas_Object *obj);
 #endif
 #endif