Mir
|
Interface to graphic buffer allocation. More...
#include <graphic_buffer_allocator.h>
Public Member Functions | |
virtual | ~GraphicBufferAllocator ()=default |
virtual std::shared_ptr< Buffer > | alloc_buffer (BufferProperties const &buffer_properties)=0 |
Allocates a buffer. More... | |
virtual std::vector< MirPixelFormat > | supported_pixel_formats ()=0 |
The supported buffer pixel formats. More... | |
virtual std::shared_ptr< Buffer > | alloc_buffer (geometry::Size size, uint32_t native_format, uint32_t native_flags)=0 |
allocates a buffer with the native flags and format specified More... | |
virtual std::shared_ptr< Buffer > | alloc_software_buffer (geometry::Size size, MirPixelFormat)=0 |
allocates a 'software' (cpu-accessible) buffer note: mesa and eglstreams use ShmBuffer, android uses ANW with software usage bits. More... | |
Protected Member Functions | |
GraphicBufferAllocator ()=default | |
GraphicBufferAllocator (const GraphicBufferAllocator &)=delete | |
GraphicBufferAllocator & | operator= (const GraphicBufferAllocator &)=delete |
Interface to graphic buffer allocation.
|
virtualdefault |
|
protecteddefault |
|
protecteddelete |
|
pure virtual |
Allocates a buffer.
[in] | buffer_properties | the properties the allocated buffer should have |
|
pure virtual |
allocates a buffer with the native flags and format specified
|
pure virtual |
allocates a 'software' (cpu-accessible) buffer note: mesa and eglstreams use ShmBuffer, android uses ANW with software usage bits.
|
protecteddelete |
|
pure virtual |
The supported buffer pixel formats.
Copyright © 2012-2016 Canonical Ltd.
Generated on Fri Dec 20 06:52:43 UTC 2019