You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Bill Haneman <Bi...@ireland.sun.com> on 2000/11/13 13:43:46 UTC

[commit] Fix for thread race conditions, other minor bugs

I have committed a new JSVGCanvas.  It should not be prone to
race conditions, but it may appear to regress performance in
some cases since GUI interaction can no longer be done during
rendering to the offscreen buffer.

I believe that this rendering can, in principle, be performed
in the background, and am hoping to commit a safe implementation
today.  

I have temporarily disabled text selection as there are a couple of
known bugs that I need to work on, one of which can cause an
infinite loop as some of you may already know :-(

If anyone else wants to look for the bug in TreeIterator in the meantime, 
be my guest ! :-)  Just let me know in case I get time to look at it myself.
When it is fixed we probably should move it to .util.

-Bill

>  ----------------------------------------------------------------------
> 
>  Thread fixes to JSVGCanvas.  Removed warning from ConcreteTextNode.
>  Temporarily disabled text selection until further bug fixing is done. 
> 
>  Note: JSVGCanvas may have an apparent performance regression,
>      namely that user interaction can no longer be done while
>      rendering is pending.  This is because background rendering
>      has been disabled due to thread conflicts/race conditions.  
> 
>  I hope to restore background rendering to
>      the offscreen buffer as soon as possible, to cure this regression.
> 
>  Modified Files:
>         sources/org/apache/batik/refimpl/gvt/ConcreteTextNode.java
>         sources/org/apache/batik/refimpl/gvt/renderer/StaticRenderer.java
>         sources/org/apache/batik/refimpl/util/JSVGCanvas.java
>  Added Files:
>         sources/org/apache/batik/util/Timer.java
>  ----------------------------------------------------------------------
> ~

------
Bill Haneman +353 1 8199279
Ireland Desktop Engineering
Sun Microsystems Ireland Ltd.