diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-25 00:21:23 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-25 00:21:23 (GMT) |
commit | f3d15516572394b6bcd44a89dd66516fa4eba56e (patch) | |
tree | b97aa3bc1826d21e6fd8b39f657b1e1e63369270 /src/gui/egl/qegl_p.h | |
parent | 7421f79f57f475b9e96e53e5cbd9861c428d4ae3 (diff) | |
download | Qt-f3d15516572394b6bcd44a89dd66516fa4eba56e.zip Qt-f3d15516572394b6bcd44a89dd66516fa4eba56e.tar.gz Qt-f3d15516572394b6bcd44a89dd66516fa4eba56e.tar.bz2 |
Remove the storage of the EGLSurface from QEglContext
Reviewed-by: Sarah Smith
Diffstat (limited to 'src/gui/egl/qegl_p.h')
-rw-r--r-- | src/gui/egl/qegl_p.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/gui/egl/qegl_p.h b/src/gui/egl/qegl_p.h index 3903cd0..afec29b 100644 --- a/src/gui/egl/qegl_p.h +++ b/src/gui/egl/qegl_p.h @@ -89,25 +89,19 @@ public: bool openDisplay(QPaintDevice *device); bool chooseConfig(const QEglProperties& properties, QEgl::PixelFormatMatch match = QEgl::ExactPixelFormat); bool createContext(QEglContext *shareContext = 0); - bool createSurface(QPaintDevice *device, const QEglProperties *properties = 0); - bool recreateSurface(QPaintDevice *device); - void destroySurface(); + EGLSurface createSurface(QPaintDevice *device, const QEglProperties *properties = 0); void destroySurface(EGLSurface surface); void destroy(); - bool makeCurrent(); bool makeCurrent(EGLSurface surface); bool doneCurrent(); bool lazyDoneCurrent(); - bool swapBuffers(); bool swapBuffers(EGLSurface surface); void waitNative(); void waitClient(); - QSize surfaceSize() const; - bool configAttrib(int name, EGLint *value) const; static void clearError() { eglGetError(); } @@ -116,8 +110,6 @@ public: EGLDisplay display() const { return dpy; } EGLContext context() const { return ctx; } - EGLSurface surface() const { return surf; } - void setSurface(EGLSurface surface) { surf = surface; } EGLConfig config() const { return cfg; } QEglProperties configProperties(EGLConfig cfg = 0) const; @@ -133,7 +125,6 @@ private: QEgl::API apiType; EGLDisplay dpy; EGLContext ctx; - EGLSurface surf; EGLConfig cfg; EGLSurface currentSurface; bool share; |