Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 
36 class FramebufferBundle{
37 public:
38  virtual ~FramebufferBundle() = default;
39 
40  virtual MirPixelFormat fb_format() = 0;
41  virtual geometry::Size fb_size() = 0;
42  virtual std::shared_ptr<Buffer> buffer_for_render() = 0;
43  virtual std::shared_ptr<Buffer> last_rendered_buffer() = 0;
44  virtual void wait_for_consumed_buffer(bool) = 0;
45 
46 protected:
47  FramebufferBundle() = default;
48  FramebufferBundle(FramebufferBundle const&) = delete;
49  FramebufferBundle& operator=(FramebufferBundle const&) = delete;
50 };
51 
52 }
53 }
54 }
55 
56 #endif /* MIR_GRAPHICS_ANDROID_FRAMEBUFFER_BUNDLE_H_ */
MirPixelFormat
The order of components in a format enum matches the order of the components as they would be written...
Definition: common.h:99

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