~bregma/mir/docs-use-sphinx

« back to all changes in this revision

Viewing changes to src/server/graphics/nested/platform.h

  • Committer: Stephen M. Webb
  • Date: 2017-01-05 14:21:43 UTC
  • mfrom: (3665.1.241 development-branch)
  • Revision ID: stephen.webb@canonical.com-20170105142143-xbmxkuvxb6gejs0n
synch with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#define MIR_GRAPHICS_NESTED_PLATFORM_H_
21
21
 
22
22
#include "mir/graphics/platform.h"
 
23
#include "passthrough_option.h"
23
24
#include <memory>
24
25
 
25
26
namespace mir
26
27
{
 
28
namespace options
 
29
{
 
30
class Option;
 
31
}
27
32
namespace graphics
28
33
{
29
34
class DisplayReport;
36
41
    Platform(
37
42
        std::shared_ptr<mir::SharedLibrary> const& library, 
38
43
        std::shared_ptr<HostConnection> const& connection, 
39
 
        std::shared_ptr<DisplayReport> const& display_report);
 
44
        std::shared_ptr<DisplayReport> const& display_report,
 
45
        options::Option const& options);
40
46
 
41
47
    UniqueModulePtr<GraphicBufferAllocator> create_buffer_allocator() override;
42
48
    UniqueModulePtr<graphics::Display> create_display(
51
57
    //the concept of guest platform is strange, it only exists to deny creating a
52
58
    //host display in a nested context. It should go away soon.
53
59
    std::shared_ptr<graphics::Platform> const guest_platform;
 
60
    PassthroughOption const passthrough_option;
54
61
};
55
62
}
56
63
}