Re: [OpenJDK 2D-Dev] [8] Request for review: 8000629 [macosx] Blurry rendering with Java 7 on Retina display

2013-03-27 Thread Anthony Petrov
Hi Sergey, src/macosx/classes/sun/java2d/opengl/CGLLayer.java 48 private int scale = 1; src/macosx/classes/sun/awt/CGraphicsDevice.java 222 public int getScaleFactor() { src/macosx/classes/sun/java2d/opengl/CGLSurfaceData.java 45 protected final int scale; (there's also o

Re: [OpenJDK 2D-Dev] [8] Request for review: 8000629 [macosx] Blurry rendering with Java 7 on Retina display

2013-03-27 Thread Sergey Bylokhov
On 3/27/13 4:12 PM, Denis S. Fokin wrote: Hi Sergey, why we do not use Math.round() here? Region.java: 153 return (int) Math.floor(newv + 0.5); Just because it one additional call. Thank you, Denis. On 3/26/2013 7:33 PM, Sergey Bylokhov wrote: Hello, Please review the fix for jd

Re: [OpenJDK 2D-Dev] [8] Request for review: 8000629 [macosx] Blurry rendering with Java 7 on Retina display

2013-03-27 Thread Sergey Bylokhov
On 3/27/13 6:52 PM, Anthony Petrov wrote: (there's also other usages of int in shared code) Why do we use integer values here? There's no 100% guarantee that the scale factor is integer on Mac (or other platforms when we support HiDPI rendering on them). At least native APIs operate with float

[OpenJDK 2D-Dev] hg: jdk8/2d/jdk: 8010005: [parfait] Memory leak in jdk/src/macosx/native/sun/awt/CTextPipe.m

2013-03-27 Thread jennifer . godinez
Changeset: 87c62f03bc07 Author:jgodinez Date: 2013-03-27 12:42 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/87c62f03bc07 8010005: [parfait] Memory leak in jdk/src/macosx/native/sun/awt/CTextPipe.m Reviewed-by: bae, prr Contributed-by: jia-hong.c...@oracle.com ! src/macosx/

Re: [OpenJDK 2D-Dev] [8] Review request for 8005607: Recursion in J2DXErrHandler() Causes a Stack Overflow on Linux

2013-03-27 Thread Anton Litvinov
Hello Phil, Thank you very much for the review. No, the original problem consists in the fact that Xlib function "XSetErrorHandler" is not thread-safe, so calling it from different threads by setting one error handler and restoring the previous error handler leads to such not easily reproduci

Re: [OpenJDK 2D-Dev] [8] Review request for 8005607: Recursion in J2DXErrHandler() Causes a Stack Overflow on Linux

2013-03-27 Thread Phil Race
Hello, On 3/27/2013 3:08 PM, Anton Litvinov wrote: Hello Phil, Thank you very much for the review. No, the original problem consists in the fact that Xlib function "XSetErrorHandler" is not thread-safe, so calling it from different threads by setting one error handler and restoring the previ