deweese     02/02/21 14:13:10

  Modified:    sources/org/apache/batik/gvt/renderer DynamicRenderer.java
  Log:
  DynamicRenderer now disables the panning cache.
  Upside for some content animation is now 2-3x as fast and memory
  consumption during animation is much better.
  
  Revision  Changes    Path
  1.9       +11 -1     
xml-batik/sources/org/apache/batik/gvt/renderer/DynamicRenderer.java
  
  Index: DynamicRenderer.java
  ===================================================================
  RCS file: 
/home/cvs/xml-batik/sources/org/apache/batik/gvt/renderer/DynamicRenderer.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DynamicRenderer.java      19 Feb 2002 18:01:29 -0000      1.8
  +++ DynamicRenderer.java      21 Feb 2002 22:13:10 -0000      1.9
  @@ -30,7 +30,7 @@
    * Simple implementation of the Renderer that supports dynamic updates.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Thierry Kormann</a>
  - * @version $Id: DynamicRenderer.java,v 1.8 2002/02/19 18:01:29 deweese Exp $
  + * @version $Id: DynamicRenderer.java,v 1.9 2002/02/21 22:13:10 deweese Exp $
    */
   public class DynamicRenderer extends StaticRenderer {
   
  @@ -50,6 +50,16 @@
       }
   
       RectListManager damagedAreas;
  +
  +    protected CachableRed setupCache(CachableRed img) {
  +        /* Don't do any caching of content for dynamic case */
  +        return img;
  +    }
  +
  +    public void flush(Rectangle r) {
  +        /* Since we don't cache we don't need to flush */
  +        return;
  +    }
   
       /**
        * Repaints the associated GVT tree under the list of <tt>areas</tt>.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to