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>

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

§ ~GraphicBufferAllocator()

virtual mir::graphics::GraphicBufferAllocator::~GraphicBufferAllocator ( )
virtualdefault

§ GraphicBufferAllocator() [1/2]

mir::graphics::GraphicBufferAllocator::GraphicBufferAllocator ( )
protecteddefault

§ GraphicBufferAllocator() [2/2]

mir::graphics::GraphicBufferAllocator::GraphicBufferAllocator ( const GraphicBufferAllocator )
protecteddelete

Member Function Documentation

§ alloc_buffer()

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

§ operator=()

GraphicBufferAllocator& mir::graphics::GraphicBufferAllocator::operator= ( const GraphicBufferAllocator )
protecteddelete

§ supported_pixel_formats()

virtual std::vector<MirPixelFormat> mir::graphics::GraphicBufferAllocator::supported_pixel_formats ( )
pure virtual

The supported buffer pixel formats.


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

Copyright © 2012-2016 Canonical Ltd.
Generated on Sat Dec 3 12:48:59 UTC 2016