Support non-symmetric radial gradients
So far Canvas Painter has supported only symmetric radial gradients,
meaning that the inner (focal) center point and outer center point
have always been the same. QPainter and HTML 2d context however support
also non-symmetric radial gradients, so implement support for this.
Notes:
- Using a separate shader type as the math for these is more complex.
Simpler version is always used when the points are the same.
- Add constructors that match HTML 2d context createRadialGradient().
Note that the parameters are in opposite order compared to QPainter
QRadialGradient, inner (focal) values are given before outer ones.
- Add separate methods for inner and outer center points. This way the
existing API doesn't change and existing code keeps function as
before. Only oddity of this is that centerPosition() and
outerCenterPosition() are now the same thing, but I don't know what
would be a better approach.
- Only non-compatible change is QDataStream format, but as Canvas
Painter is TP, nobody should depend on it yet.
- Take this into use in gallery example and add auto tests.
Task-number: QTBUG-145138
Change-Id: I4e4bc82bbc43db6cdab37c7608edf617119fffbf
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>