Mir
Public Member Functions | Protected Member Functions | List of all members
mir::graphics::GraphicBufferAllocator Class Referenceabstract

Interface to graphic buffer allocation. More...

#include <graphic_buffer_allocator.h>

Inheritance diagram for mir::graphics::GraphicBufferAllocator:
[legend]

Public Member Functions

virtual ~GraphicBufferAllocator ()=default
 
virtual std::shared_ptr< Bufferalloc_buffer (BufferProperties const &buffer_properties)=0
 Allocates a buffer. More...
 
virtual std::vector< MirPixelFormatsupported_pixel_formats ()=0
 The supported buffer pixel formats. More...
 

Protected Member Functions

 GraphicBufferAllocator ()=default
 
 GraphicBufferAllocator (const GraphicBufferAllocator &)=delete
 
GraphicBufferAllocatoroperator= (const GraphicBufferAllocator &)=delete
 

Detailed Description

Interface to graphic buffer allocation.

Constructor & Destructor Documentation

virtual mir::graphics::GraphicBufferAllocator::~GraphicBufferAllocator ( )
virtualdefault
mir::graphics::GraphicBufferAllocator::GraphicBufferAllocator ( )
protecteddefault
mir::graphics::GraphicBufferAllocator::GraphicBufferAllocator ( const GraphicBufferAllocator )
protecteddelete

Member Function Documentation

virtual std::shared_ptr<Buffer> mir::graphics::GraphicBufferAllocator::alloc_buffer ( BufferProperties const &  buffer_properties)
pure virtual

Allocates a buffer.

Parameters
[in]buffer_propertiesthe properties the allocated buffer should have

Implemented in mir::graphics::mesa::BufferAllocator, and mir::graphics::android::AndroidGraphicBufferAllocator.

GraphicBufferAllocator& mir::graphics::GraphicBufferAllocator::operator= ( const GraphicBufferAllocator )
protecteddelete
virtual std::vector<MirPixelFormat> mir::graphics::GraphicBufferAllocator::supported_pixel_formats ( )
pure virtual

The supported buffer pixel formats.

Implemented in mir::graphics::mesa::BufferAllocator, and mir::graphics::android::AndroidGraphicBufferAllocator.


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

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015