Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
mir::test::doubles::StubBufferAllocator Struct Reference

#include <stub_buffer_allocator.h>

Inheritance diagram for mir::test::doubles::StubBufferAllocator:
Inheritance graph
[legend]

Public Member Functions

 StubBufferAllocator ()
 
std::shared_ptr< graphics::Bufferalloc_buffer (graphics::BufferProperties const &)
 Allocates a buffer. More...
 
std::vector
< geometry::PixelFormat
supported_pixel_formats ()
 The supported buffer pixel formats. More...
 
- Public Member Functions inherited from mir::graphics::GraphicBufferAllocator
virtual ~GraphicBufferAllocator ()=default
 

Public Attributes

unsigned int id
 

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::test::doubles::StubBufferAllocator::StubBufferAllocator ( )
inline

Member Function Documentation

std::shared_ptr<graphics::Buffer> mir::test::doubles::StubBufferAllocator::alloc_buffer ( graphics::BufferProperties const &  buffer_properties)
inlinevirtual

Allocates a buffer.

Parameters
[in]buffer_propertiesthe properties the allocated buffer should have

Implements mir::graphics::GraphicBufferAllocator.

std::vector<geometry::PixelFormat> mir::test::doubles::StubBufferAllocator::supported_pixel_formats ( )
inlinevirtual

The supported buffer pixel formats.

Implements mir::graphics::GraphicBufferAllocator.

Member Data Documentation

unsigned int mir::test::doubles::StubBufferAllocator::id

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

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