This copies less data, which is faster. Increases creation/delegates_image from
560 ops/frame to 600 ops/frame for me.
Change-Id: I9c230bb9fa82fd631020881fb741857285589bca
Suggested-by: Michael Brasser <michael.brasser@live.com>
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
if (loadUrl.scheme() == QStringLiteral("image")) {
setDevicePixelRatio = true;
} else {
- QString stringUrl = loadUrl.toString();
+ QString stringUrl = loadUrl.path(QUrl::PrettyDecoded);
if (stringUrl.endsWith(QLatin1String("svg")) ||
stringUrl.endsWith(QLatin1String("svgz"))) {
setDevicePixelRatio = true;