Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
framebuffer_bundle.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 Lesser 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 Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by:
17  * Kevin DuBois <kevin.dubois@canonical.com>
18  */
19 
20 #ifndef MIR_GRAPHICS_ANDROID_FRAMEBUFFER_BUNDLE_H_
21 #define MIR_GRAPHICS_ANDROID_FRAMEBUFFER_BUNDLE_H_
22 
23 #include "mir_toolkit/common.h"
24 #include "mir/geometry/size.h"
25 #include <memory>
26 
27 namespace mir
28 {
29 namespace graphics
30 {
31 class Buffer;
32 
33 namespace android
34 {
35 
37 public:
38  virtual ~FramebufferBundle() = default;
39 
40  virtual MirPixelFormat fb_format() = 0;
41  virtual geometry::Size fb_size() = 0;
42  virtual double fb_refresh_rate() = 0;
43  virtual std::shared_ptr<Buffer> buffer_for_render() = 0;
44  virtual std::shared_ptr<Buffer> last_rendered_buffer() = 0;
45  virtual void wait_for_consumed_buffer(bool) = 0;
46 
47 protected:
48  FramebufferBundle() = default;
49  FramebufferBundle(FramebufferBundle const&) = delete;
51 };
52 
53 }
54 }
55 }
56 
57 #endif /* MIR_GRAPHICS_ANDROID_FRAMEBUFFER_BUNDLE_H_ */
Definition: size.h:30
virtual void wait_for_consumed_buffer(bool)=0
All things Mir.
Definition: aging_buffer.h:24
virtual std::shared_ptr< Buffer > last_rendered_buffer()=0
virtual MirPixelFormat fb_format()=0
Definition: framebuffer_bundle.h:36
MirPixelFormat
The order of components in a format enum matches the order of the components as they would be written...
Definition: common.h:119
Definition: android_input_receiver.h:32
virtual geometry::Size fb_size()=0
virtual std::shared_ptr< Buffer > buffer_for_render()=0
FramebufferBundle & operator=(FramebufferBundle const &)=delete

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014