Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nested_platform.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU 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 General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Eleni Maria Stea <elenimaria.stea@canonical.com>
17  */
18 
19 #ifndef MIR_GRAPHICS_NESTED_NESTED_PLATFORM_H_
20 #define MIR_GRAPHICS_NESTED_NESTED_PLATFORM_H_
21 
22 #include "mir/graphics/platform.h"
25 
26 namespace mir
27 {
28 namespace input { class EventFilter; }
29 namespace graphics
30 {
31 namespace nested
32 {
33 
34 class NestedPlatform : public Platform
35 {
36 public:
38  std::shared_ptr<HostConnection> const& connection,
39  std::shared_ptr<input::EventFilter> const& event_handler,
40  std::shared_ptr<DisplayReport> const& display_report,
41  std::shared_ptr<NativePlatform> const& native_platform);
42 
43  ~NestedPlatform() noexcept;
44  std::shared_ptr<GraphicBufferAllocator> create_buffer_allocator(
45  std::shared_ptr<BufferInitializer> const& buffer_initializer);
46  std::shared_ptr<Display> create_display(
47  std::shared_ptr<DisplayConfigurationPolicy> const& initial_conf_policy);
48  std::shared_ptr<PlatformIPCPackage> get_ipc_package();
49  std::shared_ptr<InternalClient> create_internal_client();
50  void fill_ipc_package(std::shared_ptr<BufferIPCPacker> const& packer,
51  std::shared_ptr<Buffer> const& Buffer) const;
52 
53 private:
54  std::shared_ptr<NativePlatform> const native_platform;
55  std::shared_ptr<input::EventFilter> const event_handler;
56  std::shared_ptr<DisplayReport> const display_report;
57  std::shared_ptr<HostConnection> const connection;
58 };
59 
60 }
61 }
62 }
63 
64 #endif // MIR_GRAPHICS_NESTED_NESTED_PLATFORM_H

Copyright © 2012,2013 Canonical Ltd.
Generated on Wed Oct 30 18:52:19 UTC 2013