15 : m_allocator(allocator)
18 m_buffers.push_back(initialBuffer);
30 return m_allocationOptions.
size;
36 if (!buffer->isReferenced()) {
46 m_buffers.append(buffer);
52 return m_allocationOptions.
format;
virtual GraphicsBuffer * allocate(const GraphicsBufferOptions &options)=0
GraphicsBuffer * acquire()
Swapchain(GraphicsBufferAllocator *allocator, const GraphicsBufferOptions &options, GraphicsBuffer *initialBuffer)
QList< uint64_t > modifiers() const
uint32_t format
The pixel format of the buffer, see DRM_FORMAT_*.
QList< uint64_t > modifiers
An optional list of modifiers, see DRM_FORMAT_MOD_*.
QSize size
The size of the buffer, in device pixels.