diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-10-26 17:33:29 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-10-26 17:38:30 +0200 |
commit | 3e49992a478f01016cc326e4b1719a10e5078280 (patch) | |
tree | 781968fe9fcfa8f253e7161668843dcf3502471c | |
parent | 4bb79f7edc487f5896470d5b4d66c88b14215530 (diff) |
dumbfb: add num_planes
-rw-r--r-- | libkms++/dumbframebuffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libkms++/dumbframebuffer.h b/libkms++/dumbframebuffer.h index ea82755..c836e39 100644 --- a/libkms++/dumbframebuffer.h +++ b/libkms++/dumbframebuffer.h @@ -15,6 +15,7 @@ public: void print_short() const; PixelFormat format() const { return m_format; } + unsigned num_planes() const { return m_num_planes; } uint32_t handle(unsigned plane) const { return m_planes[plane].handle; } uint8_t* map(unsigned plane) const { return m_planes[plane].map; } |