Subclassing Graphics2D to provide XRender acceleration?
On Linux it appears that Java2D/Graphics2D doesn't do anything at all to accelerate 2D graphics when OpenGL isn't present. I'm targeting a platform that doesn't have any 3D capabilities, but provides some 2D acceleration exposed via XRENDER and possibly EXA in the near future.
I need antialiasing, but turning AA on with a Graphics2D gives me something like 1/2 FPS animation. Cairo on the same machine is around 20 - 30 FPS doing the same types of tests, because it can access the 2D acceleration features of the card through its X11 driver.
So I'd like to do something like subclassing Graphics2D to talk to Cairo via JNI to actually get acceptable graphics performance since OpenGL is out of the question.
Is this possible? Is there a better method to get Java2D with AA sped up to an acceptable level by using native 2D acceleartion?