Hi,

Pivot 2.0 introduced the 'disableVolatileBuffer' flag (PIVOT-390). Its default value is true. In case of not signed web apps (JWS, Applet) a SecurityException will be thrown (and catched) and the default value remains unchanged: true. So, these apps will never benefit from the faster VolatileImage buffer. Did I overlook something?

public abstract class ApplicationContext {

  public static class DisplayHost extends java.awt.Component {

    private boolean disableVolatileBuffer = true;

    public DisplayHost() {
      ...
      try {
disableVolatileBuffer = Boolean.parseBoolean(System.getProperty("org.apache.pivot.wtk.disablevolatilebuffer"));
      } catch (SecurityException ex) {
        // No-op
      }
      ...
    }
  }
}

August

Reply via email to