United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6434670 : OGL: use new AffineTransform methods in OGLRenderer.Gradient.enableGradientPaint()

Details
Type:
Bug
Submit Date:
2006-06-06
Status:
Resolved
Updated Date:
2008-02-06
Project Name:
JDK
Resolved Date:
2006-07-17
Component:
client-libs
OS:
solaris_9
Sub-Component:
2d
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:

Related Reports

Sub Tasks

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.
                                     
2006-06-28
EVALUATION

As described.
                                     
2006-06-06



Hardware and Software, Engineered to Work Together