summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_device.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-05-13 14:33:08 -0400
committerChris Michael <cp.michael@samsung.com>2015-05-13 14:42:10 -0400
commit443010b465fec213f9a1f084328cc285591586e6 (patch)
tree092bd4a935730400657838903cd49789ef24c6d8 /src/lib/ecore_drm/ecore_drm_device.c
parent3aaa9f2f9f2c998207eb3ad13876d70532e6bd0c (diff)
ecore-drm: Greatly improve drm rendering speed
Summary: This greatly improves rendering speed in evas drm engine. Previously we would always call drmModeSetCrtc regardless if it was needed or not. These changes greatly improve rendering speed in drm as we now only call drmModeSetCrtc if it is needed. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm_device.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm_device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_device.c b/src/lib/ecore_drm/ecore_drm_device.c
index b902c19d34..774234eb5c 100644
--- a/src/lib/ecore_drm/ecore_drm_device.c
+++ b/src/lib/ecore_drm/ecore_drm_device.c
@@ -24,6 +24,9 @@ _ecore_drm_device_cb_page_flip(int fd EINA_UNUSED, unsigned int frame EINA_UNUSE
24 flip_count++; 24 flip_count++;
25 if (flip_count < cb->count) return; 25 if (flip_count < cb->count) return;
26 26
27 cb->dev->current = cb->dev->next;
28 cb->dev->next = NULL;
29
27 flip_count = 0; 30 flip_count = 0;
28 if (cb->func) cb->func(cb->data); 31 if (cb->func) cb->func(cb->data);
29 /* free(cb); */ 32 /* free(cb); */