summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wayland/qwaylanddisplay.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-01-21 14:52:02 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-01-26 13:16:09 (GMT)
commit0bf84a428ab6199ae1bb98460b6a8ffb842cba88 (patch)
treef80c35e47bd07f8bdb86a524495e748d4c8d45f3 /src/plugins/platforms/wayland/qwaylanddisplay.cpp
parentd39662822785484ec8e76066f4f2b65ef8778b40 (diff)
downloadQt-0bf84a428ab6199ae1bb98460b6a8ffb842cba88.zip
Qt-0bf84a428ab6199ae1bb98460b6a8ffb842cba88.tar.gz
Qt-0bf84a428ab6199ae1bb98460b6a8ffb842cba88.tar.bz2
Making clearer separation between responsibility of different classes
Ie. Moving code into different files and refactoring some of the classes. The Drmbuffer was most affected. It has a depth and stencil buffer. QWaylandGLContext contain the context. The drm buffer class has to be bound to the context before used.
Diffstat (limited to 'src/plugins/platforms/wayland/qwaylanddisplay.cpp')
-rw-r--r--src/plugins/platforms/wayland/qwaylanddisplay.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/platforms/wayland/qwaylanddisplay.cpp b/src/plugins/platforms/wayland/qwaylanddisplay.cpp
index 8446777..e5adb499 100644
--- a/src/plugins/platforms/wayland/qwaylanddisplay.cpp
+++ b/src/plugins/platforms/wayland/qwaylanddisplay.cpp
@@ -304,3 +304,13 @@ QWaylandDisplay::~QWaylandDisplay(void)
close(mFd);
wl_display_destroy(mDisplay);
}
+
+void QWaylandDisplay::syncCallback(wl_display_sync_func_t func, void *data)
+{
+ wl_display_sync_callback(mDisplay, func, data);
+}
+
+void QWaylandDisplay::frameCallback(wl_display_frame_func_t func, void *data)
+{
+ wl_display_frame_callback(mDisplay, func, data);
+}