]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/blobdiff - libkms++/atomicreq.h
AtomicReq: support 'allow_modeset'
[android/external-libkmsxx.git] / libkms++ / atomicreq.h
index e3bd172a94b906f3dc15955b59bb40684d9533bf..6ebdbf8add6bbdb5bc41d1b2effea0193ec8642e 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <cstdint>
 #include <string>
+#include <map>
 
 struct _drmModeAtomicReq;
 
@@ -21,10 +22,11 @@ public:
        void add(uint32_t ob_id, uint32_t prop_id, uint64_t value);
        void add(DrmObject *ob, Property *prop, uint64_t value);
        void add(DrmObject *ob, const std::string& prop, uint64_t value);
+       void add(DrmObject *ob, const std::map<std::string, uint64_t>& values);
 
-       int test();
-       int commit(void* data);
-       int commit(PageFlipHandlerBase* data) { return commit((void*)data); }
+       int test(bool allow_modeset = false);
+       int commit(void* data, bool allow_modeset = false);
+       int commit_sync(bool allow_modeset = false);
 
 private:
        Card& m_card;