Mir
schedule.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2015 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  */
17 
18 #ifndef MIR_COMPOSITOR_SCHEDULE_H_
19 #define MIR_COMPOSITOR_SCHEDULE_H_
20 
21 #include <memory>
22 
23 namespace mir
24 {
25 namespace graphics { class Buffer; }
26 namespace compositor
27 {
28 
29 class Schedule
30 {
31 public:
32  virtual void schedule(std::shared_ptr<graphics::Buffer> const& buffer) = 0;
33  virtual unsigned int num_scheduled() = 0;
34  virtual std::shared_ptr<graphics::Buffer> next_buffer() = 0;
35 
36  virtual ~Schedule() = default;
37  Schedule() = default;
38  Schedule(Schedule const&) = delete;
39  Schedule& operator=(Schedule const&) = delete;
40 };
41 
42 }
43 }
44 #endif /* MIR_COMPOSITOR_SCHEDULE_H_ */
All things Mir.
Definition: atomic_callback.h:25
Definition: schedule.h:29

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016