Mir
platform.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2012 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Alexandros Frantzis <alexandros.frantzis@canonical.com>
17  */
18 
19 #ifndef MIR_GRAPHICS_MESA_PLATFORM_H_
20 #define MIR_GRAPHICS_MESA_PLATFORM_H_
21 
22 #include "mir/graphics/platform.h"
23 #include "platform_common.h"
24 #include "display_helpers.h"
25 
26 namespace mir
27 {
28 class EmergencyCleanupRegistry;
29 namespace graphics
30 {
31 namespace mesa
32 {
33 
34 class VirtualTerminal;
35 class InternalNativeDisplay;
37 {
38 public:
39  explicit Platform(std::shared_ptr<DisplayReport> const& reporter,
40  std::shared_ptr<VirtualTerminal> const& vt,
41  EmergencyCleanupRegistry& emergency_cleanup_registry,
43 
44  /* From Platform */
47  std::shared_ptr<DisplayConfigurationPolicy> const& initial_conf_policy,
48  std::shared_ptr<GLConfig> const& gl_config) override;
49 
51 
52  std::shared_ptr<mir::udev::Context> udev;
53  std::shared_ptr<helpers::DRMHelper> const drm;
54  std::shared_ptr<helpers::GBMHelper> const gbm;
55 
56  std::shared_ptr<DisplayReport> const listener;
57  std::shared_ptr<VirtualTerminal> const vt;
58 
60 private:
61  BypassOption const bypass_option_;
62 };
63 
64 }
65 }
66 }
67 #endif /* MIR_GRAPHICS_MESA_PLATFORM_H_ */
BypassOption bypass_option() const
std::shared_ptr< helpers::GBMHelper > const gbm
Definition: platform.h:54
All things Mir.
Definition: atomic_callback.h:25
std::shared_ptr< mir::udev::Context > udev
Definition: platform.h:52
UniqueModulePtr< graphics::Display > create_display(std::shared_ptr< DisplayConfigurationPolicy > const &initial_conf_policy, std::shared_ptr< GLConfig > const &gl_config) override
Creates the display subsystem.
UniqueModulePtr< PlatformIpcOperations > make_ipc_operations() const override
Creates an object capable of doing platform specific processing of buffers before they are sent or af...
Interface to platform specific support for graphics operations.
Definition: platform.h:65
UniqueModulePtr< graphics::GraphicBufferAllocator > create_buffer_allocator() override
Creates the buffer allocator subsystem.
std::shared_ptr< VirtualTerminal > const vt
Definition: platform.h:57
std::unique_ptr< T, ModuleDeleter< T >> UniqueModulePtr
Use UniqueModulePtr to ensure that your loadable libray outlives instances created within it...
Definition: module_deleter.h:83
std::shared_ptr< DisplayReport > const listener
Definition: platform.h:56
Definition: emergency_cleanup_registry.h:32
std::shared_ptr< helpers::DRMHelper > const drm
Definition: platform.h:53
Definition: platform.h:36
BypassOption
Definition: platform_common.h:29

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016