summaryrefslogtreecommitdiff
path: root/hwc2/hwc2_callback.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hwc2/hwc2_callback.cpp')
-rw-r--r--hwc2/hwc2_callback.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/hwc2/hwc2_callback.cpp b/hwc2/hwc2_callback.cpp
index 041bc86..84ad2a8 100644
--- a/hwc2/hwc2_callback.cpp
+++ b/hwc2/hwc2_callback.cpp
@@ -73,3 +73,10 @@ void hwc2_callback::call_hotplug(hwc2_display_t dpy_id,
else
hotplug_pending.push(std::make_pair(dpy_id, connection));
}
+
+void hwc2_callback::call_vsync(hwc2_display_t dpy_id, int64_t timestamp)
+{
+ std::lock_guard<std::mutex> lock(state_mutex);
+ if (vsync)
+ vsync(vsync_data, dpy_id, timestamp);
+}