summaryrefslogtreecommitdiff
path: root/vsyncworker.cpp
AgeCommit message (Collapse)Author
2018-05-08drm_hwcomposer: vsyncworker: Fix deadlock on exit pathAlexandru Gheorghe
vsyncworker::Routine assumes that when -EINTR is returned by WaitForSignalOrExitLocked the lock as been released, which is not true, so it hangs if a vsyncworker is never enabled and Exit is called. Fixed by releasing lock in vsynworker::Routine on all code paths. Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
2018-04-27drm_hwcomposer: Use log/log.h instead of cutils/log.hJohn Stultz
When enabling Treble, Android builds are complaining about using cutils/log.h so instead use log/log.h Cc: Marissa Wall <marissaw@google.com> Cc: Sean Paul <seanpaul@google.com> Cc: Dmitry Shmidt <dimitrysh@google.com> Cc: Robert Foss <robert.foss@collabora.com> Cc: Matt Szczesiak <matt.szczesiak@arm.com> Cc: Liviu Dudau <Liviu.Dudau@arm.com> Cc: David Hanna <david.hanna11@gmail.com> Cc: Rob Herring <rob.herring@linaro.org> Cc: Alexandru-Cosmin Gheorghe <Alexandru-Cosmin.Gheorghe@arm.com> Cc: Alistair Strachan <astrachan@google.com> Signed-off-by: John Stultz <john.stultz@linaro.org>
2018-04-17drm_hwcomposer: vsyncworker: Fix uninitialized enabled_ fieldAlexandru Gheorghe
Acked-by: Robert Foss <robert.foss@collabora.com> Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> Signed-off-by: Sean Paul <seanpaul@chromium.org>
2017-04-25drm_hwcomposer: refactor WorkerAdrian Salido
Make use of standard library mutex and conditions which simplifies use of condition variables and benefits from things like scoped locking. Also add tests to make sure it runs as expected. Change-Id: Iaf92e17e1f6757dce490eddee61f84cb1f953b0c
2017-02-28drm_hwcomposer: Don't pass hwc_procs_t to VsyncWorkerSean Paul
Introduce a new class to limit the hwc_procs_t callback structure scope to hwcomposer.cpp Change-Id: I68ec62e7947ca87702b3d6d0169ae850cfbf5d85 Signed-off-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Robert Foss <robert.foss@collabora.com>
2015-07-13drm_hwcomposer: Convert v_refresh() to floatStéphane Marchesin
We convert v_refresh() to return a float and instead of storing it, compute it on the fly from the pixel clock + htotal/vtotal. This makes the synthetic vblank computation much more accurate. Change-Id: I2a0becf75eaca8ace30d176fdc813f3b57ba23a5
2015-06-04drm_hwcomposer: Move event worker into VSyncWorkerSean Paul
Using the new Worker interface, split out the event worker now that it just handles vsyncs. Change-Id: I7ebc6237b10411fdba3b8826935921b8c83c4b6c Signed-off-by: Sean Paul <seanpaul@chromium.org>