~brandontschaefer/mir/deprecate-get-egl-pixel-config

« back to all changes in this revision

Viewing changes to include/server/mir/graphics/display_configuration_observer.h

  • Committer: Tarmac
  • Author(s): Brandon Schaefer
  • Date: 2016-12-23 22:17:28 UTC
  • mfrom: (3871.1.8 display-apply-remove)
  • Revision ID: tarmac-20161223221728-o3btm77q3gepbmu8
Add the two of the missing functions needed to remove the old display configuration API.

Approved by mir-ci-bot, Chris Halse Rogers, Alan Griffiths.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
namespace mir
26
26
{
 
27
namespace frontend
 
28
{
 
29
class Session;
 
30
}
27
31
namespace graphics
28
32
{
29
33
class DisplayConfiguration;
58
62
    virtual void base_configuration_updated(std::shared_ptr<DisplayConfiguration const> const& base_config) = 0;
59
63
 
60
64
    /**
 
65
     * Notification after updating the session display configuration.
 
66
     *
 
67
     * \param [in] session  The session that is updating its display configuration.
 
68
     * \param [in] config   The configuration that is being applied to the session.
 
69
     */
 
70
    virtual void session_configuration_applied(std::shared_ptr<frontend::Session> const& session,
 
71
        std::shared_ptr<DisplayConfiguration> const& config) = 0;
 
72
    /**
 
73
     * Notification after removing the session display configuration.
 
74
     *
 
75
     * \param [in] session  The session that is removing its display configuration.
 
76
     */
 
77
    virtual void session_configuration_removed(std::shared_ptr<frontend::Session> const& session) = 0;
 
78
 
 
79
    /**
61
80
     * Notification after every failed display configuration attempt.
62
81
     *
63
82
     * This is called if the graphics platform throws an exception when trying