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
61 std::shared_ptr<Buffer> alloc_hardware_buffer(
63 std::shared_ptr<Buffer> alloc_software_buffer(
66 gbm_device*
const device;
67 std::shared_ptr<EGLExtensions>
const egl_extensions;
77 #endif // MIR_GRAPHICS_MESA_BUFFER_ALLOCATOR_H_
std::unique_ptr< Buffer > reconstruct_from(MirBufferPackage *package, MirPixelFormat format)
Interface to graphic buffer allocation.
Definition: graphic_buffer_allocator.h:37
All things Mir.
Definition: atomic_callback.h:25
BufferImportMethod
Definition: buffer_allocator.h:42
Definition: buffer_allocator.h:48
Definition: mir_native_buffer.h:30
BufferAllocator(gbm_device *device, BypassOption bypass_option, BufferImportMethod const buffer_import_method)
std::vector< MirPixelFormat > supported_pixel_formats()
The supported buffer pixel formats.
virtual std::shared_ptr< Buffer > alloc_buffer(graphics::BufferProperties const &buffer_properties)
Allocates a buffer.
Buffer creation properties.
Definition: buffer_properties.h:48
BypassOption
Definition: platform_common.h:29