Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
null_display_buffer.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  * Authored by: Alexandros Frantzis <alexandros.frantzis@canonical.com>
17  */
18 
19 #ifndef MIR_TEST_DOUBLES_NULL_DISPLAY_BUFFER_H_
20 #define MIR_TEST_DOUBLES_NULL_DISPLAY_BUFFER_H_
21 
23 
24 namespace mir
25 {
26 namespace test
27 {
28 namespace doubles
29 {
30 
32 {
33 public:
35  void make_current() {}
36  void release_current() {}
37  void post_update() {}
38  bool can_bypass() const override { return false; }
41  std::function<void(graphics::Renderable const&)> const&) {}
42  MirOrientation orientation() const override { return mir_orientation_normal; }
43 };
44 
45 }
46 }
47 }
48 
49 #endif /* MIR_TEST_DOUBLES_NULL_DISPLAY_BUFFER_H_ */
Interface to an output framebuffer.
Definition: display_buffer.h:39
bool can_bypass() const override
to be deprecated
Definition: null_display_buffer.h:38
Definition: null_display_buffer.h:31
MirOrientation
Definition: common.h:113
void make_current()
Makes the DisplayBuffer the current GL rendering target.
Definition: null_display_buffer.h:35
std::list< std::shared_ptr< Renderable > > RenderableList
Definition: renderable.h:88
mir_orientation_normal
Definition: display_configuration.cpp:33
Definition: renderable.h:33
geometry::Rectangle view_area() const
The area the DisplayBuffer occupies in the virtual screen space.
Definition: null_display_buffer.h:34
void render_and_post_update(graphics::RenderableList const &, std::function< void(graphics::Renderable const &)> const &)
Definition: null_display_buffer.h:39
MirOrientation orientation() const override
Returns the orientation of the display buffer relative to how the user should see it (the orientation...
Definition: null_display_buffer.h:42
void release_current()
Releases the current GL rendering target.
Definition: null_display_buffer.h:36
void post_update()
This will trigger OpenGL rendering and post the result to the screen.
Definition: null_display_buffer.h:37
Definition: rectangle.h:33

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