aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-03-15 14:49:56 -0500
committerDerek Foreman <derekf@osg.samsung.com>2018-03-15 14:49:56 -0500
commitf0a96ec53c6ee07749c393df4213bc79867ee8c1 (patch)
treec3830bb10e02631cde2eeb5679c2f356f44b6c62
parentee_wayland: Prevent extra commits (diff)
downloadefl-f0a96ec53c6ee07749c393df4213bc79867ee8c1.tar.gz
ee_drm: prevent extra flips
Similarly to commit 8b962d24acf192bd6c22de779c57eac73dd2f4db prevent extra flips in the drm engine. These are potentially more harmful to DRM as they can cause frame drops and missed render opportunities.
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index 15851c0d56..89c5cb5f46 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -809,6 +809,12 @@ _drm_animator_register(Ecore_Evas *ee)
}
}
+ if (ee->animator_ticked || ee->animator_ran)
+ {
+ edata->ticking = EINA_TRUE;
+ return;
+ }
+
if (edata->tick_job) ERR("Double animator register");
else
if (!edata->ticking &&