summaryrefslogtreecommitdiffstats
path: root/src/gui/egl/qeglcontext_p.h
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-02-16 12:29:36 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-03-02 08:24:23 (GMT)
commit28b85c76dd0ba4796ec519b890f6fab0fc813061 (patch)
tree4defe4c405a29fb1c07bb4392258e8f1ccf4f0e7 /src/gui/egl/qeglcontext_p.h
parent56d32b57814cb35409bc9b0076ec753de488ae7f (diff)
downloadQt-28b85c76dd0ba4796ec519b890f6fab0fc813061.zip
Qt-28b85c76dd0ba4796ec519b890f6fab0fc813061.tar.gz
Qt-28b85c76dd0ba4796ec519b890f6fab0fc813061.tar.bz2
Move static methods from QEglContext to QEgl namespace
Reviewed-By: Aleksandar Sasha Babic
Diffstat (limited to 'src/gui/egl/qeglcontext_p.h')
-rw-r--r--src/gui/egl/qeglcontext_p.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/gui/egl/qeglcontext_p.h b/src/gui/egl/qeglcontext_p.h
index 3857fb7..c656d1d 100644
--- a/src/gui/egl/qeglcontext_p.h
+++ b/src/gui/egl/qeglcontext_p.h
@@ -90,24 +90,15 @@ public:
bool configAttrib(int name, EGLint *value) const;
- static void clearError() { eglGetError(); }
- static EGLint error() { return eglGetError(); }
- static QString errorString(EGLint code);
-
- static EGLDisplay display();
-
EGLContext context() const { return ctx; }
void setContext(EGLContext context) { ctx = context; ownsContext = false;}
+ EGLDisplay display() {return QEgl::display();}
+
EGLConfig config() const { return cfg; }
void setConfig(EGLConfig config) { cfg = config; }
- QEglProperties configProperties(EGLConfig cfg = 0) const;
-
- void dumpAllConfigs();
-
- static QString extensions();
- static bool hasExtension(const char* extensionName);
+ QEglProperties configProperties() const;
private:
QEgl::API apiType;
@@ -118,9 +109,6 @@ private:
bool ownsContext;
bool sharing;
- static EGLDisplay dpy;
- static EGLNativeDisplayType nativeDisplay();
-
static QEglContext *currentContext(QEgl::API api);
static void setCurrentContext(QEgl::API api, QEglContext *context);
};