From: Changyeon Lee Date: Wed, 19 Feb 2020 11:17:39 +0000 (+0900) Subject: e_hwc_window_queue: set backup buffer if user of queue is mismatched in buffer_change X-Git-Tag: submit/tizen/20200304.075907~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bbb43427a7680f0960410e58bf737605c7983c1;p=platform%2Fupstream%2Fenlightenment.git e_hwc_window_queue: set backup buffer if user of queue is mismatched in buffer_change it is possible that hwc_window has queue and queue buffer but queue of user is null. hwc_window set queue and queue state is set -> hwc_window unset queue and queue state is unset waiting -> hwc_window set same queue and commit queue buffer -> not set backup buffer in this case, set backup buffer and should not be migrate HWC Change-Id: I33b4324733733932db32be71179d5d7c069feac8 --- diff --git a/src/bin/e_hwc_window_queue.c b/src/bin/e_hwc_window_queue.c index 9402e5da6d..020a1f2338 100644 --- a/src/bin/e_hwc_window_queue.c +++ b/src/bin/e_hwc_window_queue.c @@ -1114,7 +1114,8 @@ _e_hwc_window_queue_cb_buffer_change(void *data, E_Client *ec) flags = _comp_wl_buffer_flags_get(comp_buffer); if (flags != E_HWC_WINDOW_QUEUE_BUFFER_FLAGS) return; - if (e_hwc_window_queue_buffer_find(hwc_window->queue, comp_buffer->tbm_surface)) + if ((hwc_window->queue->user == hwc_window) && + (e_hwc_window_queue_buffer_find(hwc_window->queue, comp_buffer->tbm_surface))) return; }