e_hwc_window: execute null buffer commit if window state is CLIENT when pp set 94/225794/1 accepted/tizen/5.5/unified/20200226.124427 submit/tizen_5.5/20200225.112054
authorJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 24 Feb 2020 10:49:16 +0000 (19:49 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 24 Feb 2020 10:51:40 +0000 (19:51 +0900)
to notify buffer release to client, execute null buffer commit.

Change-Id: I2c598a8fe352c0744093f19ee6882c953f3c72db
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/bin/e_hwc_window.c

index 3f5ce7e2d44ca80dd89db19e91f8f6242116ee15..b9b8507859441e300de079bd94a152ff6dec0adc 100644 (file)
@@ -2409,7 +2409,14 @@ e_hwc_window_pp_commit_data_acquire(E_Hwc_Window *hwc_window, Eina_Bool pp_hwc_m
              EINA_SAFETY_ON_NULL_RETURN_VAL(commit_data, EINA_FALSE);
           }
         else
-          return EINA_FALSE;
+          {
+             if (!hwc_window->display.buffer.tsurface) return EINA_FALSE;
+
+             commit_data = E_NEW(E_Hwc_Window_Commit_Data, 1);
+             EINA_SAFETY_ON_NULL_RETURN_VAL(commit_data, EINA_FALSE);
+
+             _e_hwc_window_buffer_set(&commit_data->buffer, NULL, NULL);
+          }
      }
 
    EHWTRACE("COM ts:%10p ------- {%25s}, state:%s, zpos:%d, deleted:%s",