#include <display_configuration_observer.h>
mir::graphics::DisplayConfigurationObserver::DisplayConfigurationObserver |
( |
| ) |
|
|
protecteddefault |
virtual mir::graphics::DisplayConfigurationObserver::~DisplayConfigurationObserver |
( |
| ) |
|
|
protectedvirtualdefault |
virtual void mir::graphics::DisplayConfigurationObserver::base_configuration_updated |
( |
std::shared_ptr< DisplayConfiguration const > const & |
base_config | ) |
|
|
pure virtual |
Notification after updating base display configuration.
- Parameters
-
[in] | config | The configuration that has just been updated. |
virtual void mir::graphics::DisplayConfigurationObserver::catastrophic_configuration_error |
( |
std::shared_ptr< DisplayConfiguration const > const & |
failed_fallback, |
|
|
std::exception const & |
error |
|
) |
| |
|
pure virtual |
Notification after a failed display configuration with failed recovery.
This is called if the graphics platform throws an exception when trying to configure the hardware and has thrown an exception when trying to re-apply the previous configuration.
When this call is made it is unknown what state the display hardware is in, but it's unlikely to be displaying any image to the user.
As there is no sensible behaviour for Mir to have in this case, the shell should respond to this either by trying to guess a safe configuration, by switching to some other display mechanism, or by terminating.
- Parameters
-
[in] | failed_fallback | The fallback display configuration that failed to apply. |
| error | The exception thrown by the graphics platform. |
virtual void mir::graphics::DisplayConfigurationObserver::configuration_applied |
( |
std::shared_ptr< DisplayConfiguration const > const & |
config | ) |
|
|
pure virtual |
Notification after every successful display configuration.
This is called once per successful display configuration, after it has been applied to the hardware.
- Parameters
-
[in] | config | The configuration that has just been applied. |
virtual void mir::graphics::DisplayConfigurationObserver::configuration_failed |
( |
std::shared_ptr< DisplayConfiguration const > const & |
attempted, |
|
|
std::exception const & |
error |
|
) |
| |
|
pure virtual |
Notification after every failed display configuration attempt.
This is called if the graphics platform throws an exception when trying to configure the hardware.
In this case the previous display configuration has been re-applied.
- Parameters
-
[in] | attempted | The display configuration that failed to apply. |
[in] | error | The exception thrown by the graphics platform. |
virtual void mir::graphics::DisplayConfigurationObserver::initial_configuration |
( |
std::shared_ptr< DisplayConfiguration const > const & |
config | ) |
|
|
pure virtual |
Notification of the initial display configuration.
This is called exactly once, at server startup.
- Parameters
-
[in] | config | The initial configuration |
virtual void mir::graphics::DisplayConfigurationObserver::session_configuration_applied |
( |
std::shared_ptr< frontend::Session > const & |
session, |
|
|
std::shared_ptr< DisplayConfiguration > const & |
config |
|
) |
| |
|
pure virtual |
Notification after updating the session display configuration.
- Parameters
-
[in] | session | The session that is updating its display configuration. |
[in] | config | The configuration that is being applied to the session. |
virtual void mir::graphics::DisplayConfigurationObserver::session_configuration_removed |
( |
std::shared_ptr< frontend::Session > const & |
session | ) |
|
|
pure virtual |
Notification after removing the session display configuration.
- Parameters
-
[in] | session | The session that is removing its display configuration. |
The documentation for this class was generated from the following file:
Copyright © 2012-2016 Canonical Ltd.
Generated on Wed Oct 11 22:26:23 UTC 2017