Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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:
Inheritance graph
[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
< geometry::PixelFormat
supported_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::gbm::GBMBufferAllocator, and mir::test::doubles::StubBufferAllocator.

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

The supported buffer pixel formats.

Implemented in mir::test::doubles::StubBufferAllocator, and mir::graphics::gbm::GBMBufferAllocator.


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

Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Oct 15 00:23:28 UTC 2013