Avoid using QColor::xxxF functions.
authorGunnar Sletta <gunnar.sletta@digia.com>
Sat, 18 May 2013 06:24:45 +0000 (08:24 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 22 May 2013 12:49:10 +0000 (14:49 +0200)
commit81a9dd71b9ce60ab4cae629b67d6f26ebdeb19db
tree4c85a2ca61bef3f7772af33aba45a62663d6a8b1
parentcc36ce673545131047595c79ded1f465ec601780
Avoid using QColor::xxxF functions.

In our usecase, the color is always used as a float so using QColor
(which is ushort) internally adds a lot of pointless conversion.
Enough so that it shows up in profiles as 1-2% each. Not a lot,
but easy to fix.

The compare function is also somewhat simplified. For colors we're
primarily searching for equallity. If that fails, we just need to
provide consistent values, so use the address instead of doing
any fancy calculation.

Change-Id: Icae7e78ed767e802c137bab7fcacff66e9a4bc66
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp
src/quick/scenegraph/qsgdistancefieldglyphnode_p_p.h