summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-04-16 10:23:55 -0400
committerChris Michael <cp.michael@samsung.com>2015-04-16 10:25:46 -0400
commit46a04d8803ec3dd0927fd8cf44368f65e8bda8fa (patch)
treeeb41fcbc2c312ac55486f53c31b179f0c82baa5d /src/modules
parent50c47e36ebb37866637a34b70339cc20f848b6bf (diff)
evas-drm: Mark the Ecore_Drm_Fb as complete when we get the page flip event.
Summary: This fixes Ticket T2289 where the mouse pointer was leaving a trail while moving. This was caused due to not waiting for the page flip to complete @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/engines/drm/evas_outbuf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/evas/engines/drm/evas_outbuf.c b/src/modules/evas/engines/drm/evas_outbuf.c
index a27ac7e..c7a65be 100644
--- a/src/modules/evas/engines/drm/evas_outbuf.c
+++ b/src/modules/evas/engines/drm/evas_outbuf.c
@@ -12,11 +12,15 @@ static void
12_evas_outbuf_cb_pageflip(void *data) 12_evas_outbuf_cb_pageflip(void *data)
13{ 13{
14 Outbuf *ob; 14 Outbuf *ob;
15 Ecore_Drm_Fb *fb;
15 16
16 if (!(ob = data)) return; 17 if (!(ob = data)) return;
17 18
18 DBG("Outbuf Pagelip Done"); 19 DBG("Outbuf Pagelip Done");
19 20
21 if ((fb = ob->priv.buffer[ob->priv.curr]))
22 fb->pending_flip = EINA_FALSE;
23
20 ob->priv.last = ob->priv.curr; 24 ob->priv.last = ob->priv.curr;
21 ob->priv.curr = (ob->priv.curr + 1) % ob->priv.num; 25 ob->priv.curr = (ob->priv.curr + 1) % ob->priv.num;
22} 26}