Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | List of all members
mir::graphics::android::AndroidGraphicBufferAllocator Class Reference

#include <android_graphic_buffer_allocator.h>

Inheritance diagram for mir::graphics::android::AndroidGraphicBufferAllocator:
[legend]

Public Member Functions

 AndroidGraphicBufferAllocator (std::shared_ptr< BufferInitializer > const &buffer_initializer)
 
std::shared_ptr< graphics::Bufferalloc_buffer (graphics::BufferProperties const &buffer_properties)
 Allocates a buffer. More...
 
std::shared_ptr< graphics::Bufferalloc_buffer_platform (geometry::Size sz, MirPixelFormat pf, BufferUsage use)
 
std::vector< MirPixelFormatsupported_pixel_formats ()
 The supported buffer pixel formats. More...
 
- Public Member Functions inherited from mir::graphics::GraphicBufferAllocator
virtual ~GraphicBufferAllocator ()=default
 

Static Public Member Functions

static BufferUsage convert_from_compositor_usage (graphics::BufferUsage usage)
 

Additional Inherited Members

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

Constructor & Destructor Documentation

mir::graphics::android::AndroidGraphicBufferAllocator::AndroidGraphicBufferAllocator ( std::shared_ptr< BufferInitializer > const &  buffer_initializer)

Member Function Documentation

std::shared_ptr< mg::Buffer > mir::graphics::android::AndroidGraphicBufferAllocator::alloc_buffer ( graphics::BufferProperties const &  buffer_properties)
virtual

Allocates a buffer.

Parameters
[in]buffer_propertiesthe properties the allocated buffer should have

Implements mir::graphics::GraphicBufferAllocator.

std::shared_ptr< mg::Buffer > mir::graphics::android::AndroidGraphicBufferAllocator::alloc_buffer_platform ( geometry::Size  sz,
MirPixelFormat  pf,
mga::BufferUsage  use 
)
virtual
mga::BufferUsage mir::graphics::android::AndroidGraphicBufferAllocator::convert_from_compositor_usage ( graphics::BufferUsage  usage)
static
std::vector< MirPixelFormat > mir::graphics::android::AndroidGraphicBufferAllocator::supported_pixel_formats ( )
virtual

The supported buffer pixel formats.

Implements mir::graphics::GraphicBufferAllocator.


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

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014