summaryrefslogtreecommitdiff
path: root/libkms++/extframebuffer.h
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@iki.fi>2015-10-02 21:27:55 +0300
committerTomi Valkeinen <tomi.valkeinen@iki.fi>2015-10-03 16:59:19 +0300
commit2984c032ccef081c350f306c96e3c923126657c8 (patch)
tree9871d26164e5a93a0776cb9f71fa97c853b60f9f /libkms++/extframebuffer.h
parent89bfd9d567ced945bf2f4b3a927426c1ad2ee762 (diff)
Add ExtFramebuffer
Add ExtFramebuffer for cases where the buffer have been allocated externally.
Diffstat (limited to 'libkms++/extframebuffer.h')
-rw-r--r--libkms++/extframebuffer.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/libkms++/extframebuffer.h b/libkms++/extframebuffer.h
new file mode 100644
index 0000000..cc0863a
--- /dev/null
+++ b/libkms++/extframebuffer.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#include "framebuffer.h"
+
+namespace kms
+{
+
+class ExtFramebuffer : public Framebuffer
+{
+public:
+ ExtFramebuffer(Card& card, uint32_t width, uint32_t height, uint32_t depth, uint32_t bpp, uint32_t stride, uint32_t handle);
+ virtual ~ExtFramebuffer();
+
+ void print_short() const;
+
+private:
+ uint32_t m_pitch;
+ uint32_t m_bpp;
+ uint32_t m_depth;
+};
+}