e_comp: added hwc_ignore_primary configuration 60/138460/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 12 Jul 2017 04:48:36 +0000 (13:48 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 12 Jul 2017 08:06:52 +0000 (17:06 +0900)
Change-Id: I1b162277879ba01d83b680758cee62be6a9dc249

src/bin/e_comp.c
src/bin/e_comp.h
src/bin/e_comp_cfdata.c
src/bin/e_comp_cfdata.h

index 6e29f576b7731d9a2acd003f40b2621c602dc1c3..4b63120bf339a7b61529cb3e8c0b194f19dd7d5b 100644 (file)
@@ -1487,6 +1487,8 @@ e_comp_init(void)
 
    e_comp_new();
 
+   if (conf->hwc_ignore_primary) e_comp->hwc_ignore_primary = EINA_TRUE;
+
    e_main_ts("\tE_Comp_Screen Init");
    if (!e_comp_screen_init())
      {
index 625ee7d5ef951d1ab52d6d1e02373bc514c277bf..213954229f28d46cfdd8edd299bb2915f200d6f8 100644 (file)
@@ -146,6 +146,7 @@ struct _E_Comp
    Eina_Bool       hwc_reuse_cursor_buffer;
    Eina_Bool       hwc_sync_mode_change;
    Eina_Bool       hwc_use_multi_plane;
+   Eina_Bool       hwc_ignore_primary;
 
    int depth;
    unsigned int    input_key_grabs;
index 015e13fc7184de0ca5ffc46ca1e715cbc82b4481..77378875f1c8c3a164aa8ec61f42e2bb8cc45839 100644 (file)
@@ -59,6 +59,7 @@ e_comp_cfdata_edd_init(E_Config_DD **conf_edd, E_Config_DD **match_edd)
    E_CONFIG_VAL(D, T, hwc_deactive, UCHAR);
    E_CONFIG_VAL(D, T, hwc_reuse_cursor_buffer, UCHAR);
    E_CONFIG_VAL(D, T, hwc_sync_mode_change, UCHAR);
+   E_CONFIG_VAL(D, T, hwc_ignore_primary, UCHAR);
    E_CONFIG_VAL(D, T, nofade, UCHAR);
    E_CONFIG_VAL(D, T, smooth_windows, UCHAR);
    E_CONFIG_VAL(D, T, first_draw_delay, DOUBLE);
@@ -125,6 +126,7 @@ e_comp_cfdata_config_new(void)
    cfg->hwc_deactive = 0;
    cfg->hwc_reuse_cursor_buffer = 0;
    cfg->hwc_sync_mode_change = 0;
+   cfg->hwc_ignore_primary = 0;
    cfg->nofade = 0;
    cfg->smooth_windows = 0; // 1 if gl, 0 if not
    cfg->first_draw_delay = 0.15;
index 3d8c66720afc3dd5d1d19d99d1e9a20fd638a7f1..92d65cf60dbf472247ac00edb87fd20a0f21ddaa 100644 (file)
@@ -36,6 +36,7 @@ struct _E_Comp_Config
    unsigned char hwc_deactive;
    unsigned char hwc_reuse_cursor_buffer;
    unsigned char hwc_sync_mode_change;
+   unsigned char hwc_ignore_primary;
    unsigned char smooth_windows;
    unsigned char nofade;
    double        first_draw_delay;