e_mod_effect: use e_comp_object_native_usable_get instaed of using e_pixmap_usable_get 32/197432/1
authorJuyeon Lee <juyeonne.lee@samsung.com>
Fri, 11 Jan 2019 06:57:14 +0000 (15:57 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Fri, 11 Jan 2019 06:58:10 +0000 (15:58 +0900)
since tizen 5.0, efl client used to attach NULL buffer when hide,
if null buffer, server unmap the client and its pixmap is unusalbe.
To run hide effect, use e_comp_object_is_native_drawable
checks if cw has native sruface

Change-Id: I1f742be203a2b270c05c793f0d2e74bc22c51a60

src/e_mod_effect.c

index 74d4cffa117f86dea87243f37d90747ce376615a..794be09f9c352509c2d4eb402940e2b79ab71aff 100644 (file)
@@ -841,7 +841,7 @@ _eff_ref(E_Client *ec)
 
    if (!ec->pixmap) return EINA_FALSE;
    if ((e_comp_object_content_type_get(ec->frame) == E_COMP_OBJECT_CONTENT_TYPE_INT_IMAGE) &&
-       (!e_pixmap_usable_get(ec->pixmap)))
+       (!e_comp_object_native_usable_get(ec->frame)))
      return EINA_FALSE;
 
    if (e_object_is_del(E_OBJECT(ec)))