~andreas-pokorny/mir/fix-1261647

« back to all changes in this revision

Viewing changes to src/platform/graphics/mesa/display_helpers.h

  • Committer: Andreas Pokorny
  • Date: 2014-04-03 08:33:16 UTC
  • mfrom: (1499.1.27 development-branch)
  • Revision ID: andreas.pokorny@canonical.com-20140403083316-5be7di0ejxhgllbh
mergedĀ developmentĀ branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
{
38
38
namespace graphics
39
39
{
 
40
class GLConfig;
 
41
 
40
42
namespace mesa
41
43
{
42
44
 
92
94
class EGLHelper
93
95
{
94
96
public:
95
 
    EGLHelper()
96
 
        : egl_display{EGL_NO_DISPLAY}, egl_config{0},
97
 
          egl_context{EGL_NO_CONTEXT}, egl_surface{EGL_NO_SURFACE},
98
 
          should_terminate_egl{false} {}
99
 
 
 
97
    EGLHelper(GLConfig const& gl_config);
100
98
    ~EGLHelper() noexcept;
101
99
 
102
100
    EGLHelper(const EGLHelper&) = delete;
117
115
private:
118
116
    void setup_internal(GBMHelper const& gbm, bool initialize);
119
117
 
 
118
    EGLint const depth_buffer_bits;
 
119
    EGLint const stencil_buffer_bits;
120
120
    EGLDisplay egl_display;
121
121
    EGLConfig egl_config;
122
122
    EGLContext egl_context;