From ece9bc78c40b26e0ae43d64543f820789fecf40d Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 29 Sep 2015 22:40:44 +0300 Subject: Add Crtc::page_flip() --- libkms++/crtc.cpp | 5 +++++ libkms++/crtc.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'libkms++') 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; -- cgit v1.2.3