~vanvugt/mir/unique-id

« back to all changes in this revision

Viewing changes to src/server/graphics/gbm/gbm_display_buffer.h

  • Committer: Daniel van Vugt
  • Date: 2013-04-16 06:59:13 UTC
  • mfrom: (578.1.12 trunk)
  • Revision ID: daniel.van.vugt@canonical.com-20130416065913-ihl399t0ud6t2uax
Merge latest lp:mir

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * Copyright © 2013 Canonical Ltd.
3
3
 *
4
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,
 
5
 * under the terms of the GNU General Public License version 3,
6
6
 * as published by the Free Software Foundation.
7
7
 *
8
8
 * This program is distributed in the hope that it will be useful,
10
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
11
 * GNU General Public License for more details.
12
12
 *
13
 
 * You should have received a copy of the GNU Lesser General Public License
 
13
 * You should have received a copy of the GNU General Public License
14
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
15
 *
16
16
 * Authored by: Alexandros Frantzis <alexandros.frantzis@canonical.com>
24
24
 
25
25
#include <vector>
26
26
#include <memory>
 
27
#include <atomic>
27
28
 
28
29
namespace mir
29
30
{
55
56
    void clear();
56
57
    bool post_update();
57
58
 
 
59
    void schedule_set_crtc();
 
60
 
58
61
private:
59
62
    BufferObject* get_front_buffer_object();
60
63
    bool schedule_and_wait_for_page_flip(BufferObject* bufobj);
68
71
    GBMSurfaceUPtr surface_gbm;
69
72
    helpers::EGLHelper egl;
70
73
    geometry::Size size;
 
74
    std::atomic<bool> needs_set_crtc;
71
75
};
72
76
 
73
77
}