summaryrefslogtreecommitdiff
path: root/vsyncworker.h
diff options
context:
space:
mode:
authorAdrian Salido <salidoa@google.com>2017-02-16 10:29:46 -0800
committerSean Paul <seanpaul@chromium.org>2017-04-25 14:41:03 -0400
commitfa37f67815c29aaa17501569a19037b18512db99 (patch)
tree5e717fc08e35e30774802eb7da7979a06c16375a /vsyncworker.h
parentac8741504befec1d8aa2067a6eb5c2088bc84160 (diff)
drm_hwcomposer: refactor Worker
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
Diffstat (limited to 'vsyncworker.h')
-rw-r--r--vsyncworker.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vsyncworker.h b/vsyncworker.h
index a1ba1a5..787152e 100644
--- a/vsyncworker.h
+++ b/vsyncworker.h
@@ -41,9 +41,9 @@ class VSyncWorker : public Worker {
~VSyncWorker() override;
int Init(DrmResources *drm, int display);
- int RegisterCallback(std::shared_ptr<VsyncCallback> callback);
+ void RegisterCallback(std::shared_ptr<VsyncCallback> callback);
- int VSyncControl(bool enabled);
+ void VSyncControl(bool enabled);
protected:
void Routine() override;