As a follow-up to Where is the time going with my ImageMagick rotations?, I'd like to understand if/how/where the following Java code is making use of hardware acceleration on my Macbook Air running Java 6:
BufferedImage image = ImageIO.read(inputFile);
AffineTransform transform = AffineTransform.getRotateInstance(Math.toRadians(10));
AffineTransformOp op = new AffineTransformOp(transform, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
rotated = op.filter(image, null);
From browsing various SO questions, I gather this is going through the Java 2D library which in turn is going through an Apple-supplied JavaVM implementation.
Can someone provide guidance on to how I might determine this? (Note: My assumption is that it is making use of hardware acceleration because it can rotate a letter size, full-color 300 dpi image in about 50 milliseconds).
Update #1: I tried running the Java 2D trace option, but the lack of any trace output suggests that the above primitives aren't part of Java 2D or aren't considered "graphics primitives".
MacbookAir1:tmp palfvin$ java -Dsun.java2d.trace=log,timestamp,count,verbose MyApp foo.png
GraphicsPrimitive logging enabled
GraphicsPrimitive timetamps enabled
GraphicsPrimitive invocation counts enabled
GraphicsPrimitive trace output to System.err
MacbookAir1:tmp palfvin$