Mir
|
#include <graphic_buffer_allocator.h>
Public Member Functions | |
GraphicBufferAllocator (std::shared_ptr< CommandStreamSyncFactory > const &cmdstream_sync_factory, std::shared_ptr< DeviceQuirks > const &quirks) | |
std::shared_ptr< graphics::Buffer > | alloc_buffer (graphics::BufferProperties const &buffer_properties) override |
Allocates a buffer. More... | |
std::unique_ptr< graphics::Buffer > | reconstruct_from (MirNativeBuffer *anwb, MirPixelFormat) |
std::shared_ptr< graphics::Buffer > | alloc_framebuffer (geometry::Size sz, MirPixelFormat pf) |
std::vector< MirPixelFormat > | supported_pixel_formats () override |
The supported buffer pixel formats. More... | |
![]() | |
virtual | ~GraphicBufferAllocator ()=default |
Additional Inherited Members | |
![]() | |
GraphicBufferAllocator ()=default | |
GraphicBufferAllocator (const GraphicBufferAllocator &)=delete | |
GraphicBufferAllocator & | operator= (const GraphicBufferAllocator &)=delete |
mir::graphics::android::GraphicBufferAllocator::GraphicBufferAllocator | ( | std::shared_ptr< CommandStreamSyncFactory > const & | cmdstream_sync_factory, |
std::shared_ptr< DeviceQuirks > const & | quirks | ||
) |
|
overridevirtual |
Allocates a buffer.
[in] | buffer_properties | the properties the allocated buffer should have |
Implements mir::graphics::GraphicBufferAllocator.
std::shared_ptr< mg::Buffer > mir::graphics::android::GraphicBufferAllocator::alloc_framebuffer | ( | geometry::Size | sz, |
MirPixelFormat | pf | ||
) |
std::unique_ptr< mg::Buffer > mir::graphics::android::GraphicBufferAllocator::reconstruct_from | ( | MirNativeBuffer * | anwb, |
MirPixelFormat | |||
) |
|
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