You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Greg Brown <gk...@verizon.net> on 2011/01/16 20:10:04 UTC

Re: VolatileImage buffer disabled by default for not signed web apps !?

Thanks for catching that. The default should be false.

On Jan 16, 2011, at 9:38 AM, August Lammersdorf, InteractiveMesh wrote:

> 
> 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