2 * Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
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.
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.
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/>.
18 #ifndef ANBOX_PLATFORM_SDL_MIR_DISPLAY_CONNECTION_H_
19 #define ANBOX_PLATFORM_SDL_MIR_DISPLAY_CONNECTION_H_
21 #define MIR_EGL_PLATFORM
23 #include <mirclient/mir_toolkit/mir_client_library.h>
29 class MirDisplayConnection {
31 MirDisplayConnection();
32 ~MirDisplayConnection();
34 MirPixelFormat default_pixel_format() const;
36 MirConnection* connection() const;
37 EGLNativeDisplayType native_display() const;
39 int output_id() const;
40 int vertical_resolution() const;
41 int horizontal_resolution() const;
44 MirConnection* connection_;
46 int vertical_resolution_;
47 int horizontal_resolution_;