summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qblittable_p.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2012-01-23 11:41:53 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-27 18:49:12 +0100
commitfcb241b874330a045e5ba4634598476706ca7fdc (patch)
tree021079eba93c9ea23a30880bf431a1aad1ab1387 /src/gui/painting/qblittable_p.h
parentbd85d2bbb3ab9bff189ef70f86df8c2ad12e3c36 (diff)
blitter: Kill the isBlitterLocked variable of the
It starts with being initialized wrongly, the call to buffer() will lock the data while we think it is not locked, it can also get out of sync by someone calling buffer() again. Remove the variable and check with the QBlittable if we need to lock the resource into memory. Change-Id: I6d7b336ed2e272724ec5b1348b410cbc4452422f Based-On: I350375011138d1b4c2c48c100b7b30b8ea2ae460 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/gui/painting/qblittable_p.h')
-rw-r--r--src/gui/painting/qblittable_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qblittable_p.h b/src/gui/painting/qblittable_p.h
index 2c7de9cb49..711c6b7dc4 100644
--- a/src/gui/painting/qblittable_p.h
+++ b/src/gui/painting/qblittable_p.h
@@ -77,6 +77,8 @@ public:
virtual void fillRect(const QRectF &rect, const QColor &color) = 0;
virtual void drawPixmap(const QRectF &rect, const QPixmap &pixmap, const QRectF &subrect) = 0;
+ bool isLocked() const;
+
QImage *lock();
void unlock();