~aacid/qtmir/fix_leaks_application_manager_test

« back to all changes in this revision

Viewing changes to src/platforms/mirserver/miropenglcontext.h

  • Committer: CI Train Bot
  • Author(s): Alan Griffiths
  • Date: 2016-05-20 08:41:29 UTC
  • mfrom: (484.2.11 qtmir0)
  • Revision ID: ci-train-bot@canonical.com-20160520084129-co95olzpjkt1z4lh
Reduce coupling to MirServer - it has  been misused as a context object.
Approved by: Alan Griffiths, Unity8 CI Bot, Daniel d'Andrada

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2013-2015 Canonical, Ltd.
 
2
 * Copyright (C) 2013-2016 Canonical, Ltd.
3
3
 *
4
4
 * This program is free software: you can redistribute it and/or modify it under
5
5
 * the terms of the GNU Lesser General Public License version 3, as published by
23
23
#include <QOpenGLDebugLogger>
24
24
#endif
25
25
 
26
 
 
27
 
class MirServer;
28
26
class ScreenWindow;
 
27
namespace mir { namespace graphics { class Display; class GLConfig; }}
29
28
 
30
29
class MirOpenGLContext : public QObject, public QPlatformOpenGLContext
31
30
{
32
31
    Q_OBJECT
33
32
public:
34
 
    MirOpenGLContext(const QSharedPointer<MirServer> &, const QSurfaceFormat &);
 
33
    MirOpenGLContext(
 
34
        mir::graphics::Display &display,
 
35
        mir::graphics::GLConfig &gl_config
 
36
        , const QSurfaceFormat &);
35
37
    ~MirOpenGLContext() = default;
36
38
 
37
39
    QSurfaceFormat format() const override;