summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHarvey Yang <chenghaoyang@chromium.org>2023-02-08 03:33:15 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-02-10 00:47:41 +0200
commit4843bfa66dc117e94ce61d2b70b89958a7c9af3d (patch)
treee3b4273fcfa8a117227e9f30b1c044f82e3f4753 /include
parent85befa816e5a01372b52ecbd345f34815d1b9bc6 (diff)
libcamera: framebuffer: Allow inheritance of FrameBuffer
To add buffer_handle_t access in android, this patch allows inheritance of FrameBuffer to add a derived class in android. Signed-off-by: Harvey Yang <chenghaoyang@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Han-Lin Chen <hanlinchen@chromium.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/framebuffer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libcamera/framebuffer.h b/include/libcamera/framebuffer.h
index 69553999..61244829 100644
--- a/include/libcamera/framebuffer.h
+++ b/include/libcamera/framebuffer.h
@@ -46,7 +46,7 @@ private:
std::vector<Plane> planes_;
};
-class FrameBuffer final : public Extensible
+class FrameBuffer : public Extensible
{
LIBCAMERA_DECLARE_PRIVATE()
@@ -60,6 +60,7 @@ public:
FrameBuffer(const std::vector<Plane> &planes, unsigned int cookie = 0);
FrameBuffer(std::unique_ptr<Private> d);
+ virtual ~FrameBuffer() {}
const std::vector<Plane> &planes() const;
Request *request() const;