diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-05-04 17:38:37 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-05-04 17:48:02 (GMT) |
commit | 885adf0541e4b709bf5a3774361e85db2a35fc47 (patch) | |
tree | 6f4ca4ef6870876d4286d2f1ba4939de95a55e21 /tools | |
parent | a5c1161fb6bb2a24cebc104bc2a9b8def0a6e466 (diff) | |
download | Qt-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 'tools')
0 files changed, 0 insertions, 0 deletions