Mir
guest_platform.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2015 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  * Cemil Azizoglu <cemil.azizoglu@canonical.com>
18  */
19 
20 #ifndef MIR_GRAPHICS_X_GUEST_PLATFORM_H_
21 #define MIR_GRAPHICS_X_GUEST_PLATFORM_H_
22 
23 #include "mir/graphics/platform.h"
24 #include "display_helpers.h"
25 
26 namespace mir
27 {
28 namespace graphics
29 {
30 namespace X
31 {
32 
34 {
35 public:
36  GuestPlatform(std::shared_ptr<NestedContext> const& /*nested_context*/);
37 
38  std::shared_ptr<GraphicBufferAllocator> create_buffer_allocator() override;
39  std::shared_ptr<PlatformIpcOperations> make_ipc_operations() const override;
40 
41  std::shared_ptr<Display> create_display(
42  std::shared_ptr<graphics::DisplayConfigurationPolicy> const&,
43  std::shared_ptr<graphics::GLConfig> const&) override;
44  EGLNativeDisplayType egl_native_display() const override;
45 
46 private:
47  std::shared_ptr<mir::udev::Context> udev;
48  std::shared_ptr<graphics::mesa::helpers::DRMHelper> const drm;
50 };
51 
52 }
53 }
54 }
55 
56 #endif // MIR_GRAPHICS_X_GUEST_PLATFORM_H_
EGLNativeDisplayType egl_native_display() const override
Definition: guest_platform.h:33
All things Mir.
Definition: atomic_callback.h:25
std::shared_ptr< Display > create_display(std::shared_ptr< graphics::DisplayConfigurationPolicy > const &, std::shared_ptr< graphics::GLConfig > const &) override
GuestPlatform(std::shared_ptr< NestedContext > const &)
Interface to platform specific support for graphics operations.
Definition: platform.h:66
std::shared_ptr< PlatformIpcOperations > make_ipc_operations() const override
Creates an object capable of doing platform specific processing of buffers before they are sent or af...
Definition: display_helpers.h:86
std::shared_ptr< GraphicBufferAllocator > create_buffer_allocator() override
Creates the buffer allocator subsystem.
detail::IntWrapper< struct XTag > X
Definition: dimensions.h:111

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015