summaryrefslogtreecommitdiffstats
path: root/src/gui/egl/qegl_p.h
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-03-01 15:53:17 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-03-02 08:24:26 (GMT)
commit9c1ff07b427765beb71755e964b017d8258b834e (patch)
tree6d29345397572b5f72d849d833d9f91e21af92a3 /src/gui/egl/qegl_p.h
parentb2cbb880273ae6516d68be5b5f3f9b614c31ca79 (diff)
downloadQt-9c1ff07b427765beb71755e964b017d8258b834e.zip
Qt-9c1ff07b427765beb71755e964b017d8258b834e.tar.gz
Qt-9c1ff07b427765beb71755e964b017d8258b834e.tar.bz2
Make bindTextureFromNativePixmap use new QEgl APIs
The old qt_chooseEGLConfigForPixmap & qt_createEGLSurfaceForPixmap code will remain until QX11GLPixmapData can be re-written properly. Reviewed-By: TrustMe
Diffstat (limited to 'src/gui/egl/qegl_p.h')
-rw-r--r--src/gui/egl/qegl_p.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/egl/qegl_p.h b/src/gui/egl/qegl_p.h
index 7f753d0..aa89772 100644
--- a/src/gui/egl/qegl_p.h
+++ b/src/gui/egl/qegl_p.h
@@ -116,10 +116,8 @@ namespace QEgl {
enum ConfigOptions
{
- Opaque = 0x00,
+ NoOptions = 0,
Translucent = 0x01,
-
- ReadOnly = 0x00,
Renderable = 0x02 // Config will be compatable with the paint engines (VG or GL)
};
@@ -127,7 +125,7 @@ namespace QEgl {
// go through the eglChooseConfig loop every time, we use defaultConfig, which will return
// the config for a particular device/api/option combo. This function assumes that once a
// config is chosen for a particular combo, it's safe to always use that combo.
- Q_GUI_EXPORT EGLConfig defaultConfig(QPaintDevice* device, API api, ConfigOptions options);
+ Q_GUI_EXPORT EGLConfig defaultConfig(int devType, API api, ConfigOptions options);
Q_GUI_EXPORT EGLConfig chooseConfig(const QEglProperties* configAttribs, QEgl::PixelFormatMatch match = QEgl::ExactPixelFormat);
Q_GUI_EXPORT EGLSurface createSurface(QPaintDevice *device, EGLConfig cfg, const QEglProperties *surfaceAttribs = 0);