diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-04-07 05:34:05 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-04-07 05:34:05 (GMT) |
commit | bf3fdc3f6697cfaec689e8422b6c43cfe49bf9b4 (patch) | |
tree | c8ff535c80728f5849a4febf1c79481eb328b233 | |
parent | 13e3bd76869c0e9be2408b0928b87565aa48ae3d (diff) | |
download | Qt-bf3fdc3f6697cfaec689e8422b6c43cfe49bf9b4.zip Qt-bf3fdc3f6697cfaec689e8422b6c43cfe49bf9b4.tar.gz Qt-bf3fdc3f6697cfaec689e8422b6c43cfe49bf9b4.tar.bz2 |
Optimize bytesPerLine further
If we're asking for the stride it's very likely the next thing we'll do
is ask for the bits() so there's no good reason to unlock it again.
In the raster buffer case memory() will be called just before
bytesPerLine() so the code won't be hit but it's still the right thing
to do.
Reviewed-by: TrustMe
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp index edbfa7d..2a2ef5c 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp +++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp @@ -110,7 +110,6 @@ int QDirectFBPaintDevice::bytesPerLine() const QDirectFBPaintDevice* that = const_cast<QDirectFBPaintDevice*>(this); that->lockDirectFB(); Q_ASSERT(bpl != -1); - that->unlockDirectFB(); } return bpl; } |