TYPE3
[iec.git] / src / type3_AndroidCloud / anbox-master / src / anbox / platform / sdl / mir_display_connection.h
1 /*
2  * Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
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, as published
6  * by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranties of
10  * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11  * PURPOSE.  See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along
14  * with this program.  If not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17
18 #ifndef ANBOX_PLATFORM_SDL_MIR_DISPLAY_CONNECTION_H_
19 #define ANBOX_PLATFORM_SDL_MIR_DISPLAY_CONNECTION_H_
20
21 #define MIR_EGL_PLATFORM
22
23 #include <mirclient/mir_toolkit/mir_client_library.h>
24
25 #include <EGL/egl.h>
26
27 namespace anbox {
28 namespace sdl {
29 class MirDisplayConnection {
30  public:
31   MirDisplayConnection();
32   ~MirDisplayConnection();
33
34   MirPixelFormat default_pixel_format() const;
35
36   MirConnection* connection() const;
37   EGLNativeDisplayType native_display() const;
38
39   int output_id() const;
40   int vertical_resolution() const;
41   int horizontal_resolution() const;
42
43  private:
44   MirConnection* connection_;
45   int output_id_;
46   int vertical_resolution_;
47   int horizontal_resolution_;
48 };
49 }  // namespace sdl
50 }  // namespace anbox
51
52 #endif