19 #ifndef MIR_GRAPHICS_MESA_BUFFER_ALLOCATOR_H_
20 #define MIR_GRAPHICS_MESA_BUFFER_ALLOCATOR_H_
26 #pragma GCC diagnostic push
27 #pragma GCC diagnostic warning "-Wall"
29 #pragma GCC diagnostic pop
37 class BufferInitializer;
46 std::shared_ptr<BufferInitializer>
const& buffer_initializer,
56 std::shared_ptr<Buffer> alloc_hardware_buffer(
58 std::shared_ptr<Buffer> alloc_software_buffer(
61 gbm_device*
const device;
62 std::shared_ptr<graphics::BufferInitializer> buffer_initializer;
63 std::shared_ptr<EGLExtensions>
const egl_extensions;
72 #endif // MIR_GRAPHICS_MESA_BUFFER_ALLOCATOR_H_
Interface to graphic buffer allocation.
Definition: graphic_buffer_allocator.h:37
All things Mir.
Definition: aging_buffer.h:24
Definition: buffer_allocator.h:42
BufferAllocator(gbm_device *device, std::shared_ptr< BufferInitializer > const &buffer_initializer, BypassOption bypass_option)
Definition: buffer_allocator.cpp:111
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
BypassOption
Definition: platform.h:35