e_hwc: add e_client_hwc_visible_skip_set accepted/tizen/5.5/unified/20191106.124806 submit/tizen/20191106.050849 submit/tizen_5.5/20191106.081115
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 5 Nov 2019 08:03:51 +0000 (17:03 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Wed, 6 Nov 2019 05:05:26 +0000 (14:05 +0900)
Change-Id: I1c7394e928110b8e253c5aed1e5a8a1634fc0c97

src/bin/e_client.h
src/bin/e_hwc.c
src/bin/e_hwc.h
src/bin/e_hwc_windows.c

index 73ab14d..d1dae4f 100644 (file)
@@ -995,6 +995,8 @@ struct E_Client
       E_Util_Transform *transform;
       E_Comp_Wl_Hook *hook_subsurf_create;
    } base_output_resolution;
+
+   Eina_Bool hwc_visible_skip : 1;
 };
 
 #define e_client_focus_policy_click(ec) \
index 057c3ed..56b48ff 100644 (file)
@@ -824,3 +824,13 @@ e_client_hwc_on_plane(E_Client *ec)
 
    return ret;
 }
+
+E_API Eina_Bool
+e_client_hwc_visible_skip_set(E_Client *ec, Eina_Bool skip)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(ec, EINA_FALSE);
+
+   ec->hwc_visible_skip = skip;
+
+   return EINA_TRUE;
+}
index 2e4622a..c6039f2 100644 (file)
@@ -175,6 +175,7 @@ E_API Eina_Bool               e_client_hwc_property_get(E_Client *ec, unsigned i
 E_API Eina_Bool               e_client_hwc_property_set(E_Client *ec, unsigned int id, hwc_value value);
 
 E_API Eina_Bool               e_client_hwc_on_plane(E_Client *ec);
+E_API Eina_Bool               e_client_hwc_visible_skip_set(E_Client *ec, Eina_Bool skip);
 
 #endif
 #endif
index 905ff40..cbe9003 100644 (file)
@@ -613,7 +613,12 @@ _e_hwc_windows_visible_windows_list_get(E_Hwc *hwc)
              continue;
           }
 
-        // check clients to skip composite
+        if (ec->hwc_visible_skip)
+          {
+             e_hwc_window_state_set(hwc_window, E_HWC_WINDOW_STATE_NONE, EINA_TRUE);
+             continue;
+          }
+
         if (!evas_object_visible_get(ec->frame))
           {
              e_hwc_window_state_set(hwc_window, E_HWC_WINDOW_STATE_NONE, EINA_TRUE);