Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
buffer_stream_surfaces.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2012 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:
17  * Kevin DuBois <kevin.dubois@canonical.com>
18  */
19 
20 #ifndef MIR_COMPOSITOR_BUFFER_STREAM_SURFACES_H_
21 #define MIR_COMPOSITOR_BUFFER_STREAM_SURFACES_H_
22 
24 
25 #include <mutex>
26 
27 namespace mir
28 {
29 namespace compositor
30 {
31 
32 class BufferIDUniqueGenerator;
33 class BufferBundle;
34 class BackBufferStrategy;
35 
37 {
38 public:
39  BufferStreamSurfaces(std::shared_ptr<BufferBundle> const& swapper);
41 
42  std::shared_ptr<graphics::Buffer> secure_client_buffer();
43 
44  std::shared_ptr<graphics::Buffer>
45  lock_compositor_buffer(unsigned long frameno) override;
46  std::shared_ptr<graphics::Buffer> lock_snapshot_buffer() override;
47 
50  void allow_framedropping(bool);
52 
53 protected:
56 
57 private:
58  std::shared_ptr<BufferBundle> const buffer_bundle;
59 };
60 
61 }
62 }
63 
64 #endif /* MIR_COMPOSITOR_BUFFER_STREAM_SURFACES_H_ */

Copyright © 2012,2013 Canonical Ltd.
Generated on Wed Oct 30 18:52:19 UTC 2013