summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 03a6821)
raw | patch | inline | side by side (parent: 03a6821)
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Fri, 10 Feb 2017 05:08:08 +0000 (07:08 +0200) | ||
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Fri, 10 Feb 2017 08:42:53 +0000 (10:42 +0200) |
kms++/inc/kms++/extframebuffer.h | patch | blob | history | |
kms++/src/extframebuffer.cpp | patch | blob | history |
index eab7e3cd91bda936aefc2b162415f2b17cc2d707..227a57631e8c36738833de81d3c00eff81e1f39a 100644 (file)
class ExtFramebuffer : public Framebuffer
{
public:
- ExtFramebuffer(Card& card, uint32_t width, uint32_t height, uint8_t depth, uint8_t bpp, uint32_t stride, uint32_t handle);
ExtFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format,
uint32_t handles[4], uint32_t pitches[4], uint32_t offsets[4]);
ExtFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format,
index 0ade4548283cbac3f642b72cce21f9d651b6202c..1af2f628df8598e64f635165680d051ed380d132 100644 (file)
namespace kms
{
-ExtFramebuffer::ExtFramebuffer(Card& card, uint32_t width, uint32_t height, uint8_t depth, uint8_t bpp, uint32_t stride, uint32_t handle)
- :Framebuffer(card, width, height)
-{
- uint32_t id;
- int r = drmModeAddFB(card.fd(), width, height, depth, bpp, stride, handle, &id);
- if (r)
- throw invalid_argument("fob");
-
- set_id(id);
-}
-
ExtFramebuffer::ExtFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format,
uint32_t handles[], uint32_t pitches[], uint32_t offsets[])
: Framebuffer(card, width, height)