e_output: add fake_config flag. execute offscreen commit if fake_config is set 69/169669/4
authorJunkyeong Kim <jk0430.kim@samsung.com>
Thu, 8 Feb 2018 07:26:10 +0000 (16:26 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 13 Feb 2018 01:05:26 +0000 (01:05 +0000)
change fake output refresh rate to 30.

Change-Id: I1cbad3022ff8272b659178278c08da49bc41bf95
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/bin/e_output.c
src/bin/e_output.h
src/bin/e_plane.c

index e032475..540230c 100644 (file)
@@ -1773,7 +1773,7 @@ _e_output_planes_commit(E_Output *output)
      {
         if (e_plane_is_unset_try(plane)) continue;
 
-        if (output->dpms == E_OUTPUT_DPMS_OFF)
+        if ((output->dpms == E_OUTPUT_DPMS_OFF) || output->fake_config)
           {
              if (!e_plane_offscreen_commit(plane))
                ERR("fail to e_plane_offscreen_commit");
@@ -2437,9 +2437,11 @@ e_output_fake_config_set(E_Output *output, int w, int h)
 
    output->config.mode.w = w;
    output->config.mode.h = h;
-   output->config.mode.refresh = 60;
+   output->config.mode.refresh = 30;
    output->config.enabled = 1;
 
+   output->fake_config = EINA_TRUE;
+
    return EINA_TRUE;
 }
 
index f7dd950..bcef20d 100644 (file)
@@ -124,6 +124,8 @@ struct _E_Output
    /* external */
    Eina_Bool            external_set;
    E_Output_Ext_State   ext_state;
+
+   Eina_Bool fake_config;
 };
 
 enum _E_Output_Hook_Point
index 39d9edd..607b802 100644 (file)
@@ -1912,7 +1912,7 @@ e_plane_fetch(E_Plane *plane)
 
         plane->tsurface = tsurface;
 
-        if (output->dpms != E_OUTPUT_DPMS_OFF)
+        if ((output->dpms != E_OUTPUT_DPMS_OFF) && !output->fake_config)
           {
              /* set plane info and set tsurface to the plane */
              if (!_e_plane_surface_set(plane, tsurface))