summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2015-10-26 13:12:18 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-10-26 17:38:30 +0200
commit4bb79f7edc487f5896470d5b4d66c88b14215530 (patch)
tree3a9661e24640c676049a759999ec1050e7c634c1
parenta3b669a744dc542190b86d58de35f7bdaaaff473 (diff)
dumbfb: expose handle
-rw-r--r--libkms++/dumbframebuffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libkms++/dumbframebuffer.h b/libkms++/dumbframebuffer.h
index c3c0adb..ea82755 100644
--- a/libkms++/dumbframebuffer.h
+++ b/libkms++/dumbframebuffer.h
@@ -16,6 +16,7 @@ public:
PixelFormat format() const { return m_format; }
+ uint32_t handle(unsigned plane) const { return m_planes[plane].handle; }
uint8_t* map(unsigned plane) const { return m_planes[plane].map; }
uint32_t stride(unsigned plane) const { return m_planes[plane].stride; }
uint32_t size(unsigned plane) const { return m_planes[plane].size; }