Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
mir::graphics::mesa::Platform Class Reference

#include <platform.h>

Inheritance diagram for mir::graphics::mesa::Platform:
Inheritance graph
[legend]

Public Member Functions

 Platform (std::shared_ptr< DisplayReport > const &reporter, std::shared_ptr< VirtualTerminal > const &vt)
 
 ~Platform ()
 
std::shared_ptr
< graphics::GraphicBufferAllocator
create_buffer_allocator (const std::shared_ptr< BufferInitializer > &buffer_initializer)
 Creates the buffer allocator subsystem. More...
 
std::shared_ptr
< graphics::Display
create_display (std::shared_ptr< DisplayConfigurationPolicy > const &initial_conf_policy, std::shared_ptr< GLConfig > const &gl_config)
 Creates the display subsystem. More...
 
std::shared_ptr
< PlatformIPCPackage
get_ipc_package ()
 Gets the IPC package for the platform. More...
 
std::shared_ptr< InternalClientcreate_internal_client ()
 Creates the in-process client support object. More...
 
void fill_ipc_package (BufferIPCPacker *packer, Buffer const *buffer) const
 Fills the IPC package for a buffer. More...
 
EGLNativeDisplayType egl_native_display () const
 
void drm_auth_magic (unsigned int magic)
 
- Public Member Functions inherited from mir::graphics::Platform
 Platform ()=default
 
 Platform (const Platform &p)=delete
 
Platformoperator= (const Platform &p)=delete
 
- Public Member Functions inherited from mir::graphics::BasicPlatform
virtual ~BasicPlatform ()=default
 
- Public Member Functions inherited from mir::graphics::DRMAuthenticator
virtual ~DRMAuthenticator ()
 

Public Attributes

std::shared_ptr
< mir::udev::Context
udev
 
helpers::DRMHelper drm
 
helpers::GBMHelper gbm
 
std::shared_ptr< DisplayReport >
const 
listener
 
std::shared_ptr
< VirtualTerminal > const 
vt
 

Static Public Attributes

static bool internal_display_clients_present
 
static std::shared_ptr
< InternalNativeDisplay
internal_native_display
 

Additional Inherited Members

- Protected Member Functions inherited from mir::graphics::BasicPlatform
 BasicPlatform ()=default
 
 BasicPlatform (BasicPlatform const &)=delete
 
BasicPlatformoperator= (BasicPlatform const &)=delete
 
- Protected Member Functions inherited from mir::graphics::DRMAuthenticator
 DRMAuthenticator ()=default
 
 DRMAuthenticator (const DRMAuthenticator &)=delete
 
DRMAuthenticatoroperator= (const DRMAuthenticator &)=delete
 

Constructor & Destructor Documentation

mir::graphics::mesa::Platform::Platform ( std::shared_ptr< DisplayReport > const &  reporter,
std::shared_ptr< VirtualTerminal > const &  vt 
)
explicit
mir::graphics::mesa::Platform::~Platform ( )
virtual

Reimplemented from mir::graphics::Platform.

Member Function Documentation

std::shared_ptr<graphics::GraphicBufferAllocator> mir::graphics::mesa::Platform::create_buffer_allocator ( const std::shared_ptr< BufferInitializer > &  buffer_initializer)
virtual

Creates the buffer allocator subsystem.

Parameters
[in]buffer_initializerthe object responsible for initializing the buffers

Implements mir::graphics::Platform.

std::shared_ptr< mg::Display > mir::graphics::mesa::Platform::create_display ( std::shared_ptr< DisplayConfigurationPolicy > const &  initial_conf_policy,
std::shared_ptr< GLConfig > const &  gl_config 
)
virtual

Creates the display subsystem.

Implements mir::graphics::Platform.

std::shared_ptr< mg::InternalClient > mir::graphics::mesa::Platform::create_internal_client ( )
virtual

Creates the in-process client support object.

Implements mir::graphics::Platform.

void mir::graphics::mesa::Platform::drm_auth_magic ( unsigned int  magic)
virtual
EGLNativeDisplayType mir::graphics::mesa::Platform::egl_native_display ( ) const
virtual
void mir::graphics::mesa::Platform::fill_ipc_package ( BufferIPCPacker packer,
Buffer const *  buffer 
) const
virtual

Fills the IPC package for a buffer.

The Buffer IPC package will be sent to clients when receiving a buffer. The implementation must use the provided packer object to perform the packing.

Parameters
[in]packerthe object providing the packing functionality
[in]bufferthe buffer to fill the IPC package for

Implements mir::graphics::Platform.

std::shared_ptr< mg::PlatformIPCPackage > mir::graphics::mesa::Platform::get_ipc_package ( )
virtual

Gets the IPC package for the platform.

The IPC package will be sent to clients when they connect.

Implements mir::graphics::Platform.

Member Data Documentation

helpers::DRMHelper mir::graphics::mesa::Platform::drm
helpers::GBMHelper mir::graphics::mesa::Platform::gbm
bool mir::graphics::mesa::Platform::internal_display_clients_present
static
std::shared_ptr< mgm::InternalNativeDisplay > mir::graphics::mesa::Platform::internal_native_display
static
std::shared_ptr<DisplayReport> const mir::graphics::mesa::Platform::listener
std::shared_ptr<mir::udev::Context> mir::graphics::mesa::Platform::udev
std::shared_ptr<VirtualTerminal> const mir::graphics::mesa::Platform::vt

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

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Apr 11 21:14:53 UTC 2014