Re: [OpenJDK 2D-Dev] Review: Remove private API from graphics code

2012-09-06 Thread Scott Kovatch
Yes, I was wondering about that. I think I accidentally left that in there from the original patch and didn't comment/remove it. -- Scott On Sep 6, 2012, at 5:04 PM, Mike Swingler wrote: > Isn't this line a no-op, since you concat'ing the identity transform? > > + CGContextConcatCTM(qsdo->cgR

Re: [OpenJDK 2D-Dev] Review: Remove private API from graphics code

2012-09-06 Thread Mike Swingler
Isn't this line a no-op, since you concat'ing the identity transform? + CGContextConcatCTM(qsdo->cgRef, CGAffineTransformMake(1, 0, 0, 1, 0, 0)); Otherwise, looks fine. Cheers, Mike Swingler Apple Inc. On Sep 4, 2012, at 8:53 PM, Scott Kovatch wrote: > I need one more reviewer/+1... anyone? >

Re: [OpenJDK 2D-Dev] Review: Remove private API from graphics code

2012-09-04 Thread Igor Nekrestyanov
Looks ok to me. -igor On 9/4/12 8:27 AM, Scott Kovatch wrote: (resending, now that I'm on 2d-dev.) I posted a new webrev at http://cr.openjdk.java.net/~skovatch/7187834/webrev.01/ In ImageSurfaceData, it looks like we are trying to get back to a pure CTM (i.e., no transform of any kind applie

Re: [OpenJDK 2D-Dev] Review: Remove private API from graphics code

2012-09-04 Thread Phil Race
Approved. -phil. On 9/4/2012 8:27 AM, Scott Kovatch wrote: (resending, now that I'm on 2d-dev.) I posted a new webrev at http://cr.openjdk.java.net/~skovatch/7187834/webrev.01/ In ImageSurfaceData, it looks like we are trying to get back to a pure CTM (i.e., no transform of any kind applied.)

Re: [OpenJDK 2D-Dev] Review: Remove private API from graphics code

2012-09-04 Thread Scott Kovatch
I posted a new webrev at http://cr.openjdk.java.net/~skovatch/7187834/webrev.01/ In ImageSurfaceData, it looks like we are trying to get back to a pure CTM (i.e., no transform of any kind applied.) before we draw the image. We have already saved the state, but saving the state doesn't reset it.

Re: [OpenJDK 2D-Dev] Review: Remove private API from graphics code

2012-09-04 Thread Scott Kovatch
(resending, now that I'm on 2d-dev.) I posted a new webrev at http://cr.openjdk.java.net/~skovatch/7187834/webrev.01/ In ImageSurfaceData, it looks like we are trying to get back to a pure CTM (i.e., no transform of any kind applied.) before we draw the image. We have already saved the state, b

Re: [OpenJDK 2D-Dev] Review: Remove private API from graphics code

2012-08-31 Thread Scott Kovatch
On Aug 31, 2012, at 11:16 AM, Phil Race wrote: > Scott, > > These files were added by Bino to support printing. Quartz isn't used > except for printing in JDK 7, so as I understand it, testing on-screen in > Java2Demo should not exercise this code. I'm surprised that you saw > it being exercise

Re: [OpenJDK 2D-Dev] Review: Remove private API from graphics code

2012-08-31 Thread Phil Race
The recommendation is to restore the graphics state rather than inverting :- https://developer.apple.com/library/mac/#documentation/graphicsimaging/conceptual/drawingwithquartz2d/dq_affine/dq_affine.html "Quartz also provides an affine transform function that inverts a matrix, |CGAffineTransfor

Re: [OpenJDK 2D-Dev] Review: Remove private API from graphics code

2012-08-31 Thread Phil Race
Scott, These files were added by Bino to support printing. Quartz isn't used except for printing in JDK 7, so as I understand it, testing on-screen in Java2Demo should not exercise this code. I'm surprised that you saw it being exercised. Did you do any printing testing ? The matrix inversion se