Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stub_display_device.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 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 General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17 
18 #ifndef MIR_TEST_DOUBLES_STUB_DISPLAY_DEVICE_H_
19 #define MIR_TEST_DOUBLES_STUB_DISPLAY_DEVICE_H_
20 
22 
23 namespace mir
24 {
25 namespace test
26 {
27 namespace doubles
28 {
29 
30 struct StubDisplayDevice : public graphics::android::DisplayDevice
31 {
33  {
34  }
35 
36  ~StubDisplayDevice() noexcept {}
37 
39  {
40  }
42  graphics::android::SwappingGLContext const&,
44  std::function<void(graphics::Renderable const&)> const&)
45  {
46  }
47  void render_gl(graphics::android::SwappingGLContext const&)
48  {
49  }
50  void gpu_render(EGLDisplay, EGLSurface)
51  {
52  }
53  void post(graphics::Buffer const&)
54  {
55  }
56 };
57 
58 }
59 }
60 }
61 #endif /* MIR_TEST_DOUBLES_STUB_DISPLAY_DEVICE_H_ */
StubDisplayDevice()
Definition: stub_display_device.h:32
void mode(MirPowerMode)
Definition: stub_display_device.h:38
void render_gl_and_overlays(graphics::android::SwappingGLContext const &, graphics::RenderableList const &, std::function< void(graphics::Renderable const &)> const &)
Definition: stub_display_device.h:41
Definition: stub_display_device.h:30
~StubDisplayDevice() noexcept
Definition: stub_display_device.h:36
void render_gl(graphics::android::SwappingGLContext const &)
Definition: stub_display_device.h:47
std::list< std::shared_ptr< Renderable > > RenderableList
Definition: renderable.h:88
Definition: renderable.h:33
MirPowerMode
Definition: common.h:82
void post(graphics::Buffer const &)
Definition: stub_display_device.h:53
Definition: buffer.h:34
void gpu_render(EGLDisplay, EGLSurface)
Definition: stub_display_device.h:50

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Apr 11 21:14:53 UTC 2014