summaryrefslogtreecommitdiff
path: root/libkms++
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@iki.fi>2015-09-29 22:40:44 +0300
committerTomi Valkeinen <tomi.valkeinen@iki.fi>2015-10-01 19:40:22 +0300
commitece9bc78c40b26e0ae43d64543f820789fecf40d (patch)
tree181f2688fa368e2cf84c1f9a4e4cadd79e60309e /libkms++
parent856fa561b15cec79fd01a641c9f21be95dcc32cb (diff)
Add Crtc::page_flip()
Diffstat (limited to 'libkms++')
-rw-r--r--libkms++/crtc.cpp5
-rw-r--r--libkms++/crtc.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/libkms++/crtc.cpp b/libkms++/crtc.cpp
index e583be8..b0a962e 100644
--- a/libkms++/crtc.cpp
+++ b/libkms++/crtc.cpp
@@ -71,4 +71,9 @@ int Crtc::set_plane(Plane* plane, Framebuffer& fb,
dst_x, dst_y, dst_w, dst_h,
conv(src_x), conv(src_y), conv(src_w), conv(src_h));
}
+
+int Crtc::page_flip(Framebuffer& fb, void *data)
+{
+ return drmModePageFlip(card().fd(), id(), fb.id(), DRM_MODE_PAGE_FLIP_EVENT, data);
+}
}
diff --git a/libkms++/crtc.h b/libkms++/crtc.h
index ac05da9..fabc6e2 100644
--- a/libkms++/crtc.h
+++ b/libkms++/crtc.h
@@ -27,6 +27,8 @@ public:
int32_t dst_x, int32_t dst_y, uint32_t dst_w, uint32_t dst_h,
float src_x, float src_y, float src_w, float src_h);
+ int page_flip(Framebuffer& fb, void *data);
+
private:
CrtcPriv* m_priv;