Skip to content
Snippets Groups Projects
Commit cf27a4e3 authored by Tobias Pietzsch's avatar Tobias Pietzsch
Browse files

Create (and use) empty implementation of Cache interface

parent 1d74becd
No related branches found
No related tags found
No related merge requests found
......@@ -27,4 +27,15 @@ public interface Cache
* (Re-)initialize the IO time budget.
*/
public void initIoTimeBudget( final long[] partialBudget );
public static class Dummy implements Cache
{
@Override
public void prepareNextFrame()
{}
@Override
public void initIoTimeBudget( final long[] partialBudget )
{}
}
}
......@@ -51,16 +51,7 @@ public class WrapBasicImgLoader< T > implements ViewerImgLoader< T, Volatile< T
private static final AffineTransform3D[] mipmapTransforms = new AffineTransform3D[] { new AffineTransform3D() };
private static final Cache cache = new Cache()
{
@Override
public void prepareNextFrame()
{}
@Override
public void initIoTimeBudget( final long[] partialBudget )
{}
};
private static final Cache cache = new Cache.Dummy();
public WrapBasicImgLoader( final BasicImgLoader< T > source )
{
......
......@@ -259,16 +259,7 @@ public class RecordMovieDialog extends JDialog implements OverlayRenderer
}
}
final MyTarget target = new MyTarget();
final MultiResolutionRenderer renderer = new MultiResolutionRenderer( target, new PainterThread( null ), new double[] { 1 }, 0, false, 1, null, false, new Cache()
{
@Override
public void initIoTimeBudget( final long[] partialBudget )
{}
@Override
public void prepareNextFrame()
{}
} );
final MultiResolutionRenderer renderer = new MultiResolutionRenderer( target, new PainterThread( null ), new double[] { 1 }, 0, false, 1, null, false, new Cache.Dummy() );
progressWriter.setProgress( 0 );
for ( int timepoint = minTimepointIndex; timepoint <= maxTimepointIndex; ++timepoint )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment