JDK-6434670 : OGL: use new AffineTransform methods in OGLRenderer.Gradient.enableGradientPaint()
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_9
  • CPU: generic
  • Submitted: 2006-06-06
  • Updated: 2008-02-06
  • Resolved: 2006-07-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b92Fixed
Description
The OGL gradient rendering code could leverage two methods added to AffineTransform
in Mustang.  Instead of at.rotate(atan2(y, x)) we can now simply call at.rotate(x, y).
Also, instead of at=at.createInverse() we can use the in-place at.invert() method.

Comments
EVALUATION This was fixed as part of the putback for 6434670. I was able to measure some very small performance gains with this fix, on the order of 1-3% depending on the operation (see J2DBench logs attached to 6434670). The most obvious benefit is in avoiding unnecessary garbage generation.
28-06-2006

EVALUATION As described.
06-06-2006