~vanvugt/mir/unique-id

« back to all changes in this revision

Viewing changes to src/server/graphics/gbm/gbm_platform.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 © 2012 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>
32
32
namespace gbm
33
33
{
34
34
 
 
35
class VirtualTerminal;
 
36
 
35
37
class GBMPlatform : public Platform,
36
38
                    public DRMAuthenticator,
37
39
                    public std::enable_shared_from_this<GBMPlatform>
38
40
{
39
41
public:
40
 
    explicit GBMPlatform(std::shared_ptr<DisplayReport> const& reporter);
 
42
    explicit GBMPlatform(std::shared_ptr<DisplayReport> const& reporter,
 
43
                         std::shared_ptr<VirtualTerminal> const& vt);
41
44
 
42
45
    /* From Platform */
43
46
    std::shared_ptr<compositor::GraphicBufferAllocator> create_buffer_allocator(
53
56
    helpers::DRMHelper drm;
54
57
    helpers::GBMHelper gbm;
55
58
 
56
 
    std::shared_ptr<DisplayReport> listener;
 
59
    std::shared_ptr<DisplayReport> const listener;
 
60
    std::shared_ptr<VirtualTerminal> const vt;
 
61
 
57
62
private:
58
63
    std::shared_ptr<MirMesaEGLNativeDisplay> native_display;
59
64
};