~glcompbench-dev/glcompbench/scale

« back to all changes in this revision

Viewing changes to src/composite-window-glxpixmap.cc

  • Committer: Marc Ordinas i Llopis
  • Date: 2011-12-13 11:42:28 UTC
  • mfrom: (67.1.4 glproxy-flavor)
  • Revision ID: marc.ordinasillopis@linaro.org-20111213114228-gdqkhmxwb4c2kndx
glproxy: Added new flavor that uses glproxy to access the selected
backend.
Options: Added a --backend option to select which backend (glx, egl-gl,
egl-es2) to use. The available values depend on the executable's flavor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 * Authors:
20
20
 *  Alexandros Frantzis <alexandros.frantzis@linaro.org>
21
21
 *  Jesse Barker <jesse.barker@linaro.org>
 
22
 *  Marc Ordinas i Llopis, Collabora Ltd <marc.ordinasillopis@linaro.org>
22
23
 */
23
24
 
24
25
#include <X11/Xlib.h>
25
26
 
 
27
#include "gl-headers.h"
 
28
 
 
29
#ifdef USE_GLPROXY
 
30
#include <GL/glx_proxy.h>
 
31
#include <GL/glxext_proxy.h>
 
32
#else
26
33
#define GLX_GLXEXT_PROTOTYPES
27
 
#include <GL/gl.h>
28
34
#include <GL/glx.h>
29
35
#include <GL/glxext.h>
 
36
#endif
30
37
 
31
38
#include "composite-window-glxpixmap.h"
32
39
#include "log.h"
33
40
 
 
41
#ifdef USE_GLPROXY
 
42
extern PFNPROXYBINDTEXIMAGEEXTPROC glXBindTexImageEXT_;
 
43
extern PFNPROXYRELEASETEXIMAGEEXTPROC glXReleaseTexImageEXT_;
 
44
#else
34
45
extern PFNGLXBINDTEXIMAGEEXTPROC glXBindTexImageEXT_;
35
46
extern PFNGLXRELEASETEXIMAGEEXTPROC glXReleaseTexImageEXT_;
 
47
#endif
36
48
 
37
49
void
38
50
CompositeWindowGLXPixmap::release_tfp()