Mir
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 geometry::Size fb_size() = 0;
41  virtual std::shared_ptr<Buffer> buffer_for_render() = 0;
42  virtual std::shared_ptr<Buffer> last_rendered_buffer() = 0;
43 
44 protected:
45  FramebufferBundle() = default;
46  FramebufferBundle(FramebufferBundle const&) = delete;
48 };
49 
50 }
51 }
52 }
53 
54 #endif /* MIR_GRAPHICS_ANDROID_FRAMEBUFFER_BUNDLE_H_ */
Definition: size.h:30
All things Mir.
Definition: atomic_callback.h:25
virtual std::shared_ptr< Buffer > last_rendered_buffer()=0
Definition: framebuffer_bundle.h:36
Definition: android_input_receiver.h:36
virtual geometry::Size fb_size()=0
virtual std::shared_ptr< Buffer > buffer_for_render()=0
FramebufferBundle & operator=(FramebufferBundle const &)=delete

Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016