diff options
Diffstat (limited to 'kms++/inc')
-rw-r--r-- | kms++/inc/kms++/dmabufframebuffer.h | 3 | ||||
-rw-r--r-- | kms++/inc/kms++/extframebuffer.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/kms++/inc/kms++/dmabufframebuffer.h b/kms++/inc/kms++/dmabufframebuffer.h index 2a9182d..a17b1f1 100644 --- a/kms++/inc/kms++/dmabufframebuffer.h +++ b/kms++/inc/kms++/dmabufframebuffer.h @@ -11,7 +11,7 @@ class DmabufFramebuffer : public Framebuffer { public: DmabufFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format, - std::vector<int> fds, std::vector<uint32_t> pitches, std::vector<uint32_t> offsets); + std::vector<int> fds, std::vector<uint32_t> pitches, std::vector<uint32_t> offsets, std::vector<uint64_t> modifiers = {}); ~DmabufFramebuffer() override; uint32_t width() const override { return Framebuffer::width(); } @@ -37,6 +37,7 @@ private: uint32_t size; uint32_t stride; uint32_t offset; + uint64_t modifier; uint8_t *map; }; diff --git a/kms++/inc/kms++/extframebuffer.h b/kms++/inc/kms++/extframebuffer.h index 5239a3d..f906fb2 100644 --- a/kms++/inc/kms++/extframebuffer.h +++ b/kms++/inc/kms++/extframebuffer.h @@ -11,7 +11,7 @@ class ExtFramebuffer : public Framebuffer { public: ExtFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format, - std::vector<uint32_t> handles, std::vector<uint32_t> pitches, std::vector<uint32_t> offsets); + std::vector<uint32_t> handles, std::vector<uint32_t> pitches, std::vector<uint32_t> offsets, std::vector<uint64_t> modifiers = {}); ~ExtFramebuffer() override; uint32_t width() const override { return Framebuffer::width(); } @@ -31,6 +31,7 @@ private: uint32_t size; uint32_t stride; uint32_t offset; + uint64_t modifier; uint8_t *map; }; |