e_mod_effect: use e_comp_object_native_usable_get instaed of using e_pixmap_usable_get 65/196865/5 submit/tizen/20190111.054351
authorJuyeon Lee <juyeonne.lee@samsung.com>
Mon, 7 Jan 2019 05:19:13 +0000 (14:19 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Tue, 8 Jan 2019 07:14:57 +0000 (16:14 +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: I62a47adbab6132d236c370ad3d16dc85eb73bed4
Signed-off-by: Juyeon Lee <juyeonne.lee@samsung.com>
src/e_mod_effect.c

index 07da8e6..25b5a94 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)))