Mir
|
#include <buffer_allocator.h>
Public Member Functions | |
BufferAllocator (gbm_device *device, BypassOption bypass_option, BufferImportMethod const buffer_import_method) | |
std::shared_ptr< Buffer > | alloc_buffer (graphics::BufferProperties const &buffer_properties) override |
Allocates a buffer. More... | |
std::vector< MirPixelFormat > | supported_pixel_formats () override |
The supported buffer pixel formats. More... | |
std::unique_ptr< Buffer > | reconstruct_from (MirBufferPackage *package, MirPixelFormat format) |
![]() | |
virtual | ~GraphicBufferAllocator ()=default |
Additional Inherited Members | |
![]() | |
GraphicBufferAllocator ()=default | |
GraphicBufferAllocator (const GraphicBufferAllocator &)=delete | |
GraphicBufferAllocator & | operator= (const GraphicBufferAllocator &)=delete |
mir::graphics::mesa::BufferAllocator::BufferAllocator | ( | gbm_device * | device, |
BypassOption | bypass_option, | ||
BufferImportMethod const | buffer_import_method | ||
) |
|
overridevirtual |
Allocates a buffer.
[in] | buffer_properties | the properties the allocated buffer should have |
Implements mir::graphics::GraphicBufferAllocator.
std::unique_ptr<Buffer> mir::graphics::mesa::BufferAllocator::reconstruct_from | ( | MirBufferPackage * | package, |
MirPixelFormat | format | ||
) |
|
overridevirtual |
The supported buffer pixel formats.
Implements mir::graphics::GraphicBufferAllocator.
Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016