[OpenJDK 2D-Dev] request for review: xrender pipeline ignores center-coordinates of RadialGradient
Clemens Eisserer
linuxhippy at gmail.com
Fri Oct 18 13:44:52 UTC 2013
Hi,
Please review my fix for the issue described below at:
http://cr.openjdk.java.net/~ceisserer/fix13/webrev.00/
Problem description:
Phil found an issue with TransformedPaintTest, where the center point
of radial gradients was stuck at (0,0) with the xrender-pipeline
enabled.
The center-point was indeed set to (0,0) and offset of the
center-point was applied using the source transform.
However, when the source transformation of the gradient surface was
re-validated later on (XRSurfaceData.validateAsSource()) this
translation is lost again.
Fix description:
This patch sets the center-point now explicitly.
It also cleans up the API a bit (there were two completly unused
Point2D-objects) and removes unnescessary/dead code.
Thanks, Clemens
More information about the 2d-dev
mailing list