Mir
Public Member Functions | List of all members
mir::graphics::mesa::BufferAllocator Class Reference

#include <buffer_allocator.h>

Inheritance diagram for mir::graphics::mesa::BufferAllocator:
[legend]

Public Member Functions

 BufferAllocator (gbm_device *device, BypassOption bypass_option, BufferImportMethod const buffer_import_method)
 
std::shared_ptr< Bufferalloc_buffer (graphics::BufferProperties const &buffer_properties) override
 Allocates a buffer. More...
 
std::vector< MirPixelFormatsupported_pixel_formats () override
 The supported buffer pixel formats. More...
 
std::unique_ptr< Bufferreconstruct_from (MirBufferPackage *package, MirPixelFormat format)
 
- Public Member Functions inherited from mir::graphics::GraphicBufferAllocator
virtual ~GraphicBufferAllocator ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from mir::graphics::GraphicBufferAllocator
 GraphicBufferAllocator ()=default
 
 GraphicBufferAllocator (const GraphicBufferAllocator &)=delete
 
GraphicBufferAllocatoroperator= (const GraphicBufferAllocator &)=delete
 

Constructor & Destructor Documentation

mir::graphics::mesa::BufferAllocator::BufferAllocator ( gbm_device *  device,
BypassOption  bypass_option,
BufferImportMethod const  buffer_import_method 
)

Member Function Documentation

std::shared_ptr<Buffer> mir::graphics::mesa::BufferAllocator::alloc_buffer ( graphics::BufferProperties const &  buffer_properties)
overridevirtual

Allocates a buffer.

Parameters
[in]buffer_propertiesthe properties the allocated buffer should have

Implements mir::graphics::GraphicBufferAllocator.

std::unique_ptr<Buffer> mir::graphics::mesa::BufferAllocator::reconstruct_from ( MirBufferPackage package,
MirPixelFormat  format 
)
std::vector<MirPixelFormat> mir::graphics::mesa::BufferAllocator::supported_pixel_formats ( )
overridevirtual

The supported buffer pixel formats.

Implements mir::graphics::GraphicBufferAllocator.


The documentation for this class was generated from the following file:

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016