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
53 std::shared_ptr<Buffer> alloc_hardware_buffer(
55 std::shared_ptr<Buffer> alloc_software_buffer(
58 gbm_device*
const device;
59 std::shared_ptr<EGLExtensions>
const egl_extensions;
68 #endif // MIR_GRAPHICS_MESA_BUFFER_ALLOCATOR_H_
Interface to graphic buffer allocation.
Definition: graphic_buffer_allocator.h:37
All things Mir.
Definition: buffer_stream.h:37
Definition: buffer_allocator.h:41
std::vector< MirPixelFormat > supported_pixel_formats()
The supported buffer pixel formats.
Definition: buffer_allocator.cpp:213
BufferAllocator(gbm_device *device, BypassOption bypass_option)
Definition: buffer_allocator.cpp:110
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:120
BypassOption
Definition: platform.h:32