public class SyncRunner extends GraphRunner
GraphRunner.OnRunnerDoneListener
mFilterContext, RESULT_BLOCKED, RESULT_ERROR, RESULT_FINISHED, RESULT_RUNNING, RESULT_SLEEPING, RESULT_STOPPED, RESULT_UNKNOWN
Constructor and Description |
---|
SyncRunner(FilterContext context,
FilterGraph graph,
Class schedulerClass) |
Modifier and Type | Method and Description |
---|---|
void |
beginProcessing() |
void |
close()
Closes the filters in a graph.
|
protected int |
determinePostRunState() |
Exception |
getError()
Returns the last exception that happened during an asynchronous run.
|
FilterGraph |
getGraph() |
boolean |
isRunning() |
protected void |
processFilterNode(Filter filter) |
void |
run()
Starts running the graph.
|
protected void |
scheduleFilterWake(Filter filter,
int delay) |
void |
setDoneCallback(GraphRunner.OnRunnerDoneListener listener) |
int |
step() |
void |
stop()
Stops graph execution.
|
protected void |
waitUntilWake() |
activateGlContext, deactivateGlContext, getContext
public SyncRunner(FilterContext context, FilterGraph graph, Class schedulerClass)
public FilterGraph getGraph()
getGraph
in class GraphRunner
public int step()
public void beginProcessing()
public void close()
GraphRunner
close
in class GraphRunner
public void run()
GraphRunner
run
in class GraphRunner
public boolean isRunning()
isRunning
in class GraphRunner
public void setDoneCallback(GraphRunner.OnRunnerDoneListener listener)
setDoneCallback
in class GraphRunner
public void stop()
GraphRunner
stop
in class GraphRunner
public Exception getError()
GraphRunner
getError
in class GraphRunner
protected void waitUntilWake()
protected void processFilterNode(Filter filter)
protected void scheduleFilterWake(Filter filter, int delay)
protected int determinePostRunState()