[OpenJDK 2D-Dev] [OGL] validatePipe and antialiasing
Christopher.Campbell at Sun.COM
Fri Jul 25 17:20:22 UTC 2008
The antialiased case is handled in super.validatePipe() (in the
SurfaceData base class), which in turn calls getMaskFill(). We
override getMaskFill() in OGLSurfaceData so that it calls
OGLPaints.isValid() to determine whether the given paint can be
accelerated in the antialiased case. If the paint can't be
accelerated by OGL, we return null to indicate that validatePipe()
should use a more general/slower path for rendering the paint via
MaskBlit. Does this help?
On Jul 25, 2008, at 5:31 AM, Clemens Eisserer wrote:
> I am currently trying to rewrite validatePipe using
> OGLSurfaceData.validatePipe() as template,
> however I am a bit confused about what happens in the antialiased
> case, e.g. gradient as paint with antialiasing.
> E.g. in my case I would like to fallback if the a RadialGradient with
> focus!=center is set as paint, however OGLSurfaceData.validatePipe()
> does only call isPaintValid() in the non-antialiased case, however it
> seems to work fine there.
> In my case the fallback is only hit when antialiasing is turned off.
> Thanks for your patience, Clemens
More information about the 2d-dev