summaryrefslogtreecommitdiffstats
path: root/src/opengl/qwindowsurface_gl_p.h
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-03-29 09:07:49 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2011-03-29 09:08:41 (GMT)
commit269b61dd08b7e37445f40e3a1d0854bcf85f445b (patch)
tree777a49f68be4f2d17447c62ffee05947925bf152 /src/opengl/qwindowsurface_gl_p.h
parent2ea1c931713ddca8bbc718e7691867ad117d5a6e (diff)
downloadQt-269b61dd08b7e37445f40e3a1d0854bcf85f445b.zip
Qt-269b61dd08b7e37445f40e3a1d0854bcf85f445b.tar.gz
Qt-269b61dd08b7e37445f40e3a1d0854bcf85f445b.tar.bz2
Added preserved contents property to QWindowSurface.
Previously we used hasPartialUpdateSupport() to deduce whether the window surface's contents are preserved when flush is called or not, but that limits us from fully supporting platforms which might allow partial updates even though the surface contents aren't preserved on flush. If hasPreservedContents() returns false, that means a flush of a region is never allowed without first painting to that region. If hasPartialUpdateSupport() returns false, the whole window surface must always be painted whenever an update is requested. Note that hasPreservedContents() will typically imply hasPartialUpdateSupport(), but not vice versa. Reviewed-by: Bjørn Erik Nilsen
Diffstat (limited to 'src/opengl/qwindowsurface_gl_p.h')
-rw-r--r--src/opengl/qwindowsurface_gl_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/qwindowsurface_gl_p.h b/src/opengl/qwindowsurface_gl_p.h
index e1689bf..cabb35a 100644
--- a/src/opengl/qwindowsurface_gl_p.h
+++ b/src/opengl/qwindowsurface_gl_p.h
@@ -109,6 +109,7 @@ public:
QImage *buffer(const QWidget *widget);
bool hasPartialUpdateSupport() const;
+ bool hasPreservedContents() const;
QGLContext *context() const;