TYPE3
[iec.git] / src / type3_AndroidCloud / anbox-master / src / anbox / graphics / emugl / DisplayManager.cpp
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 #include "DisplayManager.h"
19
20 namespace anbox {
21 namespace graphics {
22 namespace emugl {
23 std::shared_ptr<DisplayInfo> DisplayInfo::get() {
24   static auto info = std::make_shared<DisplayInfo>();
25   return info;
26 }
27
28 void DisplayInfo::set_resolution(const std::uint32_t &vertical, const std::uint32_t horizontal) {
29   vertical_resolution_ = vertical;
30   horizontal_resolution_ = horizontal;
31 }
32
33 std::uint32_t DisplayInfo::vertical_resolution() const { return vertical_resolution_; }
34
35 std::uint32_t DisplayInfo::horizontal_resolution() const { return horizontal_resolution_; }
36 } // namespace emugl
37 } // namespace graphics
38 } // namespace anbox