19 #ifndef MIR_GRAPHICS_MESA_BUFFER_ALLOCATOR_H_
20 #define MIR_GRAPHICS_MESA_BUFFER_ALLOCATOR_H_
25 #pragma GCC diagnostic push
26 #pragma GCC diagnostic warning "-Wall"
28 #pragma GCC diagnostic pop
36 class BufferInitializer;
45 std::shared_ptr<BufferInitializer>
const& buffer_initializer);
54 std::shared_ptr<Buffer> alloc_hardware_buffer(
56 std::shared_ptr<Buffer> alloc_software_buffer(
59 gbm_device*
const device;
60 std::shared_ptr<graphics::BufferInitializer> buffer_initializer;
61 std::shared_ptr<EGLExtensions>
const egl_extensions;
70 #endif // MIR_GRAPHICS_MESA_BUFFER_ALLOCATOR_H_
Interface to graphic buffer allocation.
Definition: graphic_buffer_allocator.h:37
BufferAllocator(gbm_device *device, std::shared_ptr< BufferInitializer > const &buffer_initializer)
Definition: buffer_allocator.cpp:111
Definition: buffer_allocator.h:41
std::vector< MirPixelFormat > supported_pixel_formats()
The supported buffer pixel formats.
Definition: buffer_allocator.cpp:221
Buffer creation properties.
Definition: buffer_properties.h:48
virtual std::shared_ptr< Buffer > alloc_buffer(graphics::BufferProperties const &buffer_properties)
Allocates a buffer.
Definition: buffer_allocator.cpp:124