summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimage.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-09-02 10:16:16 +0200
committerMarc Mutz <marc.mutz@kdab.com>2014-09-02 20:42:51 +0200
commitb04c14429734614fdb7c846a0c319512acee47cd (patch)
treee8d34f3e359ae1fc644d03c51fcb0aad7f3fe805 /src/gui/image/qimage.cpp
parent1a9992c1f2e44f5a2cb8daffa7bcf5b272d6bec4 (diff)
QOpenGL2GradientCache::getBuffer: calculate hash value outside critical section
The code doesn't touch any member variables, so it doesn't need mutex protection. Reducing the time spent under the mutex allows a higher speedup (Amdahl's Law), so do it. Also made the mutex locker const to indicate it is never unlock()ed again. Change-Id: Ic50b827c0e34d39cbddc7ec83675b568a9c33f6d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'src/gui/image/qimage.cpp')
0 files changed, 0 insertions, 0 deletions