hwc_window_queue: add missing release buffer queue 81/187381/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 22 Aug 2018 11:02:13 +0000 (20:02 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Mon, 27 Aug 2018 08:07:11 +0000 (17:07 +0900)
Change-Id: I85f4318a85567dd41aa45ca4f43c52bebba4d78d

src/bin/e_hwc_window_queue.c

index dff66bd4b175e9a345785b8a98da667d5e8458ef..5dc358e523e041930aa4b9d25f266fbc209351d1 100644 (file)
@@ -365,6 +365,12 @@ _e_hwc_window_queue_waiting_user_unset(E_Hwc_Window_Queue *queue, E_Hwc_Window *
    EINA_LIST_FOREACH_SAFE(queue->waiting_user, l, ll, tmp_hwc_window)
      {
         if(tmp_hwc_window != hwc_window) continue;
+
+        tdm_hwc_window_release_buffer_queue(hwc_window->thwc_window, queue->tqueue);
+
+        EHWQINF("Release buffer queue ehw:%p tq:%p",
+                hwc_window->ec, queue, hwc_window, queue->tqueue);
+
         e_object_unref(E_OBJECT(hwc_window));
         queue->waiting_user = eina_list_remove_list(queue->waiting_user, l);
      }
@@ -508,7 +514,12 @@ _e_hwc_window_queue_unset(E_Hwc_Window_Queue *queue)
      hwc_window = queue->user;
 
    if (hwc_window)
-     tdm_hwc_window_release_buffer_queue(hwc_window->thwc_window, queue->tqueue);
+     {
+        tdm_hwc_window_release_buffer_queue(hwc_window->thwc_window, queue->tqueue);
+
+        EHWQINF("Release buffer queue ehw:%p tq:%p",
+                hwc_window->ec, queue, hwc_window, queue->tqueue);
+     }
 
    queue->state = E_HWC_WINDOW_QUEUE_STATE_UNSET;
 
@@ -1091,7 +1102,12 @@ _e_hwc_window_tqueue_get(E_Hwc_Window *hwc_window)
    if (hwc_window->is_target)
      tqueue = _get_tbm_surface_queue();
    else
-     tqueue = tdm_hwc_window_acquire_buffer_queue(hwc_window->thwc_window, &error);
+     {
+        tqueue = tdm_hwc_window_acquire_buffer_queue(hwc_window->thwc_window, &error);
+
+        EHWQINF("Acquire buffer queue ehw:%p tq:%p",
+                hwc_window->ec, NULL, hwc_window, tqueue);
+     }
 
    if (!tqueue)
      {