summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-03-21 15:03:55 -0500
committerDerek Foreman <derekf@osg.samsung.com>2018-03-23 16:13:39 -0500
commite9b7844bb8d6427a804db314872eb935635f40e8 (patch)
tree0bb09c434fddd1de07188a8678387ebc243175cd /src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
parent3bddb2b6c4b3bfd8e812ed31a583c7593e44a4f3 (diff)
ecore_drm2: Improve early tick logic
We should only have to actually force a tick if we can't set up the tick job, as the evas changed callback or a following render from the tick job's tick will cause a flip. Should remove a potential for a missed tick near the start of ticking.
Diffstat (limited to 'src/modules/ecore_evas/engines/drm/ecore_evas_drm.c')
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c5
1 files changed, 2 insertions, 3 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 89c5cb5f46..5aefe157ac 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -827,11 +827,10 @@ _drm_animator_register(Ecore_Evas *ee)
827 + ((double)usec / 1000000); 827 + ((double)usec / 1000000);
828 edata->tick_job = ecore_job_add(_tick_job, ee); 828 edata->tick_job = ecore_job_add(_tick_job, ee);
829 } 829 }
830 else
831 ecore_drm2_fb_flip(NULL, edata->output);
830 } 832 }
831 833
832 if (!ecore_drm2_output_pending_get(edata->output) && !ee->in_async_render)
833 ecore_drm2_fb_flip(NULL, edata->output);
834
835 edata->ticking = EINA_TRUE; 834 edata->ticking = EINA_TRUE;
836} 835}
837 836