video: remove unused function _e_video_is_visible()
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 27 Dec 2018 05:24:50 +0000 (14:24 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 12 Apr 2019 10:00:22 +0000 (19:00 +0900)
Change-Id: Ia8f4cb9a2bd99cf856b050b1d7d93696916e628c

src/bin/video/e_comp_wl_video.c

index c4623707e5964689a81b4e4372968f7c2b5d3544..eb5cfec29eb0d4c1eec53bb4e77bf6ac0ec20115 100644 (file)
@@ -95,38 +95,6 @@ _e_video_get_prop_id(E_Video *video, const char *name)
    return -1;
 }
 
-static Eina_Bool
-_e_video_is_visible(E_Video *video)
-{
-   E_Client *offscreen_parent;
-
-   if (e_object_is_del(E_OBJECT(video->ec))) return EINA_FALSE;
-
-   if (!e_pixmap_resource_get(video->ec->pixmap))
-     {
-        VDB("no comp buffer");
-        return EINA_FALSE;
-     }
-
-   if (video->ec->comp_data->sub.data && video->ec->comp_data->sub.data->stand_alone)
-     return EINA_TRUE;
-
-   offscreen_parent = find_offscreen_parent_get(video->ec);
-   if (offscreen_parent && offscreen_parent->visibility.obscured == E_VISIBILITY_FULLY_OBSCURED)
-     {
-        VDB("video surface invisible: offscreen fully obscured");
-        return EINA_FALSE;
-     }
-
-   if (!evas_object_visible_get(video->ec->frame))
-     {
-        VDB("evas obj invisible");
-        return EINA_FALSE;
-     }
-
-   return EINA_TRUE;
-}
-
 static E_Video *
 _e_video_create(struct wl_resource *video_object, struct wl_resource *surface)
 {