public class RenderBenchmarkCollector extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RenderBenchmarkCollector.CapturingBenchmark
A benchmark implementation that captures the times
|
static class |
RenderBenchmarkCollector.LoggingBenchmark
A special version of the benchmark class that logs the output to stderr.
|
Constructor and Description |
---|
RenderBenchmarkCollector() |
Modifier and Type | Method and Description |
---|---|
static java.util.function.Supplier<RenderBenchmarkCollector> |
defaultBenchmarkSupplier()
A supplier that gets the default benchmark class.
|
void |
renderDone()
Notified when the render method is done.
|
boolean |
renderDraw(java.util.List<StyledMapRenderer.StyleRecord> allStyleElems)
Notified when the renderer method starts drawing
|
boolean |
renderSort()
Notified when the renderer method starts sorting the styles
|
void |
renderStart(double circum)
Notified when the renderer method starts preparing the data
|
public RenderBenchmarkCollector()
public void renderStart(double circum)
circum
- The current circum of the view.public boolean renderSort()
true
if the renderer should continue to renderpublic boolean renderDraw(java.util.List<StyledMapRenderer.StyleRecord> allStyleElems)
allStyleElems
- All the elements that are painted. Unsortedtrue
if the renderer should continue to renderpublic void renderDone()
public static java.util.function.Supplier<RenderBenchmarkCollector> defaultBenchmarkSupplier()