e_hwc_window: execute null buffer commit if window state is CLIENT when pp set 93/225793/1
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:49:20 +0000 (19:49 +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 49edf75..4745603 100644 (file)
@@ -2472,7 +2472,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",