[OpenJDK 2D-Dev] drawPolyline performance

2008-10-28 Thread Viet Khoi Le
Hello everyone, I have a performance issue with drawPolyline whenever I try to use it on an array of 600K+ points. Typically with the default stroke I have very good performance, 16ms for 600K+ points. However when I tried to draw a thicker line, by setting graphics2d with a new BasicStroke

[OpenJDK 2D-Dev] hg: jdk7/2d/jdk: 6761856: OpenJDK: vertical text metrics may be significanly different from those returned by Sun JDK

2008-10-28 Thread igor . nekrestyanov
Changeset: 9cdababf6179 Author:igor Date: 2008-10-29 01:52 +0300 URL: http://hg.openjdk.java.net/jdk7/2d/jdk/rev/9cdababf6179 6761856: OpenJDK: vertical text metrics may be significanly different from those returned by Sun JDK Reviewed-by: bae, prr ! src/share/native/sun/font/free

[OpenJDK 2D-Dev] hg: jdk7/2d/jdk: 6764257: D3D/OGL: color is not reset properly after save/restoreState() [RSL]

2008-10-28 Thread dmitri . trembovetski
Changeset: 594c52582b21 Author:tdv Date: 2008-10-28 14:47 -0700 URL: http://hg.openjdk.java.net/jdk7/2d/jdk/rev/594c52582b21 6764257: D3D/OGL: color is not reset properly after save/restoreState() [RSL] Reviewed-by: campbell ! src/share/classes/sun/java2d/pipe/BufferedContext.java

Re: [OpenJDK 2D-Dev] Question regarding filling shapes

2008-10-28 Thread Jim Graham
Hi Roman, Ductus produces widened paths at the native level and since SSI is a native piece of code, it implements native interfaces to receive the widened path segments from Ductus directly without having to do upcalls. The code feeding the original path is feeding it from the Java level, bu

[OpenJDK 2D-Dev] hg: jdk7/2d/jdk: 6764543: SIGSEGV in libfontconfig.so starting from jdk7b33

2008-10-28 Thread phil . race
Changeset: c739feb28074 Author:prr Date: 2008-10-28 14:40 -0700 URL: http://hg.openjdk.java.net/jdk7/2d/jdk/rev/c739feb28074 6764543: SIGSEGV in libfontconfig.so starting from jdk7b33 Reviewed-by: campbell, igor ! src/solaris/native/sun/awt/fontpath.c

Re: [OpenJDK 2D-Dev] Question regarding filling shapes

2008-10-28 Thread Roman Kennke
Hi Jim, Thanks for the exlanations. I think I will do like the X11Renderer and use both rasterizers for the different cases, for maximum compatibility. One more thing, you mentioned Ductus. How does the RenderingEngine interface and the Pisces rasterizer fit into this picture? Is this yet another

Re: [OpenJDK 2D-Dev] Question regarding filling shapes

2008-10-28 Thread Jim Graham
Hi Roman, All of that sounds correct. Also note that the ProcessPath stuff was the stuff that Alexey wrote to combat the "unround ovals" problem, but it rasterizes to pixels that aren't quite the theoretically correct pixels. Technically the test should also take things like STROKE_PURE int

[OpenJDK 2D-Dev] Question regarding filling shapes

2008-10-28 Thread Roman Kennke
Dear 2d-devs, I want to implement a ShapeDrawPipe, and studying the X11Renderer implementation I see that there seem to be two different approaches. One is the (C-only) ProcessPath thingy (ProcessPath.h and ProcessPath.c), the other is the ShapeSpanIterator, which is available both as Java and as