summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-05-04 17:38:37 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-05-04 17:48:02 (GMT)
commit885adf0541e4b709bf5a3774361e85db2a35fc47 (patch)
tree6f4ca4ef6870876d4286d2f1ba4939de95a55e21 /src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
parenta5c1161fb6bb2a24cebc104bc2a9b8def0a6e466 (diff)
downloadQt-885adf0541e4b709bf5a3774361e85db2a35fc47.zip
Qt-885adf0541e4b709bf5a3774361e85db2a35fc47.tar.gz
Qt-885adf0541e4b709bf5a3774361e85db2a35fc47.tar.bz2
Lock for read only when possible
From benchmarking I've established that surface->Lock(DSLF_READ) is faster than surface->Lock(DSLF_WRITE) which is faster than surface->Lock(DSLF_READ|DSLF_WRITE). This patch will make us Lock for read only, when possible. Reviewed-by: Donald <qt-info@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
index 6cfafcd..697e5ce 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
@@ -69,7 +69,8 @@ public:
Qt::TransformationMode mode) const;
QImage toImage() const;
QPaintEngine* paintEngine() const;
- QImage *buffer();
+ virtual QImage *buffer();
+ QImage *buffer(uint lockFlags);
// Pure virtual in QPixmapData, so re-implement here and delegate to QDirectFBPaintDevice
int metric(QPaintDevice::PaintDeviceMetric m) const {return QDirectFBPaintDevice::metric(m);}