summaryrefslogtreecommitdiffstats
path: root/src/render/backend/stringtoint.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use SPDX license identifiersLucie Gérard2022-06-221-38/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I8105424281eed871037fa6c463871ca8829876b5 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Fix a number of MSVC int conversion warningsFriedemann Kleint2021-01-291-1/+1
| | | | | | | | | | - Port the qHash() functions to size_t - Add some casts - Adapt some types Pick-to: 6.0 Change-Id: Ib889d46dd56c1a1c4bf6b87ae1f756c188069180 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Fix some more compile warningsPaul Lemire2020-06-041-1/+1
| | | | | Change-Id: I5c42d2be7d06388609c46f9becaf147f7ce8d6ae Reviewed-by: Mike Krus <mike.krus@kdab.com>
* StringToInt: use std::shared_mutex instead of QReadWriteLockPaul Lemire2020-06-021-11/+12
| | | | | Change-Id: I1614fab80760caa27cf3350deb256c4e766aecd6 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Shader: record standard uniform at loading timePaul Lemire2019-12-041-14/+25
| | | | | | | | Avoids having to check for each uniform (for each frame, each geometry) whether it is a standard uniform or a user defined one. Change-Id: I76cff7869aacc1343a9acf991f8035b8118581ed Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Fix StringToInt implementationLars Knoll2017-09-061-42/+19
| | | | | | | | | | | | Reduces the overhead per call of lookupId() from around 7000 to 180 instructions for a use case. Should in general scale much better. I still do not like that this is using global static data that is never cleaned up. It should be tied at the minimum to the lifetime of the Qt 3D scene. Change-Id: I777a2bbf2d765f4b0fc9e3d2b06692c7260f5a9f Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Fix deadlock in StringToIntMauro Persano2016-05-171-0/+3
| | | | | Change-Id: If413023fae0a19c6c7ae1134c12027250738e794 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* StringToInt: add an overload taking QLatin1StringMarc Mutz2016-05-141-0/+6
| | | | | | | | | | | | | | | | | | About 50% of callers pass static string literals, which can be converted from QStringLiteral to QLatin1String if by adding the overload. Because of the complicated logic in the existing overload, no attempt is made in this commit to hand down the QLatin1String until the actual comparison. Instead, the QString overload is called, for now. Saves almost 1KiB in text size in Render on optimized GCC 6.0 Linux AMD64 builds. Change-Id: I37ed154ec49349f251b6a4515c20eb7cb5c89181 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* StringToInt: use QReadWriteLock plus temporary vectorPaul Lemire2016-02-201-5/+38
| | | | | Change-Id: I4bc421358ce209f7fedc1a5205f64d5b27df9ec8 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add StringToInt classPaul Lemire2016-02-191-0/+80
Change-Id: If2b559bbcf22116c0b8373c4bb63363b4adb478d Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>