libcamera: framebuffer: Enable attaching additional data to FrameBuffer
We cannot have a subclass of FrameBuffer because it is marked as final. This adds a FrameBuffer constructor with FrameBuffer::Private. So we can attach some additional resources with FrameBuffer through a customized FrameBuffer::Private class. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
294663eece
commit
99bb610fd1
3 changed files with 25 additions and 2 deletions
|
@ -57,6 +57,8 @@ public:
|
|||
};
|
||||
|
||||
FrameBuffer(const std::vector<Plane> &planes, unsigned int cookie = 0);
|
||||
FrameBuffer(std::unique_ptr<Private> d,
|
||||
const std::vector<Plane> &planes, unsigned int cookie = 0);
|
||||
|
||||
const std::vector<Plane> &planes() const { return planes_; }
|
||||
Request *request() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue