~ubuntu-branches/ubuntu/raring/glmark2/raring

« back to all changes in this revision

Viewing changes to src/canvas-x11-egl.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2012-08-21 15:38:09 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120821153809-bwux72bat8qp2n5v
Tags: 2012.08-0ubuntu1
* New upstream release 2012.08 (LP: #1039736)
  - Avoid crashing if gl used is not >= 2.0 (LP: #842279)
* Bumping dh compatibility level to v9
* debian/control:
  - Update Standards-Version to 3.9.3.
  - Add libjpeg-dev build dependency.
  - Use libegl1-x11-dev as an build-dep alternative instead of libegl1-dev.
  - Update description of glmark2-data binary package.
* debian/copyright:
  - Refresh copyright based on the current upstrem version
* debian/rules:
  - Clean compiled python code from unpacked waflib/ directory, as
    described in http://wiki.debian.org/UnpackWaf

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "canvas-x11.h"
26
26
 
27
27
#include <EGL/egl.h>
 
28
#include <vector>
28
29
 
 
30
/**
 
31
 * Canvas for rendering to an X11 window using EGL.
 
32
 */
29
33
class CanvasX11EGL : public CanvasX11
30
34
{
31
35
public:
38
42
protected:
39
43
    XVisualInfo *get_xvisualinfo();
40
44
    bool make_current();
 
45
    bool reset_context();
41
46
    void swap_buffers() { eglSwapBuffers(egl_display_, egl_surface_); }
 
47
    void get_glvisualconfig(GLVisualConfig &visual_config);
42
48
 
43
49
private:
44
50
    bool ensure_egl_display();
45
51
    bool ensure_egl_config();
 
52
    bool ensure_egl_context();
46
53
    bool ensure_egl_surface();
 
54
    void init_gl_extensions();
 
55
    void get_glvisualconfig_egl(EGLConfig config, GLVisualConfig &visual_config);
 
56
    EGLConfig select_best_config(std::vector<EGLConfig> configs);
47
57
 
48
58
    EGLDisplay egl_display_;
49
59
    EGLSurface egl_surface_;