summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.h
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2010-03-09 17:49:31 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2010-03-09 17:52:52 (GMT)
commitdac32b0d5ac4ed79584aba23134849956c787f75 (patch)
tree9f4867e9a68a59ad31d4b94f3f5f956b54bbbe22 /src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.h
parent5af931da6da229ba79a99758921d44adafafbbeb (diff)
downloadQt-dac32b0d5ac4ed79584aba23134849956c787f75.zip
Qt-dac32b0d5ac4ed79584aba23134849956c787f75.tar.gz
Qt-dac32b0d5ac4ed79584aba23134849956c787f75.tar.bz2
Improve scrolling in DirectFB
Since DirectFB always uses the front buffer of a double buffered surface as the source when blitting we needed to make sure that the front buffer was valid and hence we called Flip for each scroll. This had negative performance impacts since you could end up with various parts of a window being updated at different times. With this patch we store whether the front-buffer is up to date inside the window surface and only call Flip in scroll if it's not. Reviewed-by: Jervey Kong <jervey.kong@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.h')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.h b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.h
index a6138f6..4370a8f 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.h
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.h
@@ -114,6 +114,7 @@ private:
DFBSurfaceFlipFlags flipFlags;
bool boundingRectFlip;
+ bool flushPending;
#ifdef QT_DIRECTFB_TIMING
int frames;
QTime timer;