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>
This commit is contained in:
Harvey Yang 2023-02-08 03:33:15 +00:00 committed by Laurent Pinchart
parent 85befa816e
commit 4843bfa66d

View file

@ -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;