Mir
guest_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 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:
17  * Eleni Maria Stea <elenimaria.stea@canonical.com>
18  * Alan Griffiths <alan@octopull.co.uk>
19  */
20 
21 #ifndef MIR_GRAPHICS_MESA_GUEST_PLATFORM_H_
22 #define MIR_GRAPHICS_MESA_GUEST_PLATFORM_H_
23 
24 #include "mir/graphics/platform.h"
26 #include "display_helpers.h"
27 
28 namespace mir
29 {
30 namespace graphics
31 {
32 namespace mesa
33 {
34 class InternalNativeDisplay;
35 
37 {
38 public:
39  GuestPlatform(std::shared_ptr<NestedContext> const& nested_context_arg);
40 
43 
45  std::shared_ptr<graphics::DisplayConfigurationPolicy> const&,
46  std::shared_ptr<graphics::GLConfig> const& /*gl_config*/) override;
47  EGLNativeDisplayType egl_native_display() const override;
48 
49 private:
50  std::shared_ptr<NestedContext> const nested_context;
52 };
53 }
54 }
55 }
56 
57 #endif // MIR_GRAPHICS_MESA_GUEST_PLATFORM_H_
GuestPlatform(std::shared_ptr< NestedContext > const &nested_context_arg)
All things Mir.
Definition: atomic_callback.h:25
Definition: guest_platform.h:36
Interface to platform specific support for graphics operations.
Definition: platform.h:66
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
Definition: display_helpers.h:86
UniqueModulePtr< GraphicBufferAllocator > create_buffer_allocator() override
Creates the buffer allocator subsystem.
UniqueModulePtr< Display > create_display(std::shared_ptr< graphics::DisplayConfigurationPolicy > const &, std::shared_ptr< graphics::GLConfig > const &) override
UniqueModulePtr< PlatformIpcOperations > make_ipc_operations() const override
Creates an object capable of doing platform specific processing of buffers before they are sent or af...
EGLNativeDisplayType egl_native_display() const override

Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016