use of limelight.ui.BufferedImagePool in project limelight by slagyr.
the class PanelPainterLoopTest method paintsDirtyRegions.
@Test
public void paintsDirtyRegions() throws Exception {
Context.instance().bufferedImagePool = new BufferedImagePool(0.1);
activeRoot.addDirtyRegion(new Rectangle(0, 0, 10, 10));
loop.paintDirtyRegions(activeRoot);
assertEquals(false, activeRoot.hasDirtyRegions());
}
use of limelight.ui.BufferedImagePool in project limelight by slagyr.
the class PaintJobTest method setUp.
public void setUp() throws Exception {
bufferedImageCache = new SimpleCache<Panel, BufferedImage>();
pool = new BufferedImagePool(1);
Context.instance().bufferedImageCache = bufferedImageCache;
Context.instance().bufferedImagePool = pool;
job = new PaintJob(new Box(100, 200, 300, 400), Colors.TRANSPARENT);
panel = new MockProp();
style = panel.style;
graphics = new MockGraphics();
}
Aggregations