Improved QQuickShaderEffect::lookThroughShaderCode() performance.
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>
Tue, 1 Nov 2011 17:11:38 +0000 (18:11 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 14 Nov 2011 13:19:34 +0000 (14:19 +0100)
commitfd58c5fc9fa5dc1aa975cf40a5a58945671e22ee
tree91a198e029aee1343cd3c67aef33b305c191cd13
parent7dc37bc9b580efb5916144c00df128dd24e67faa
Improved QQuickShaderEffect::lookThroughShaderCode() performance.

Removed use of regexp. Skip comments and compiler directives in
the shader code. Don't look through default shader code.

Task-number: QTBUG-22423
Change-Id: Ie08cd8288ba7d7a33f1e3b0dc2ab5f2bedad04dd
Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
src/declarative/items/qquickshadereffect.cpp