Update RenderTaskListGenerator to use NewNode
private static final Logger logger = LoggerFactory.getLogger(RenderTaskListGenerator.class);
private List<RenderPipelineTask> taskList;
- private List<Node> nodeList;
+ private List<NewNode> nodeList;
public RenderTaskListGenerator() {
taskList = Lists.newArrayList();
}
- private void logIntermediateRendererListForDebugging(List<Node> orderedNodes) {
+ private void logIntermediateRendererListForDebugging(List<NewNode> orderedNodes) {
- for (Node node : orderedNodes) {
+ for (NewNode node : orderedNodes) {
if (node.isEnabled()) {
// printing out node name
@@ -82,8 +82,7 @@ private void logIntermediateRendererListForDebugging(List<Node> orderedNodes) {
* @return an optimized list of RenderPipelineTask instances,
* ready to be iterated over to execute a frame worth of rendering
*/
-
- public List<RenderPipelineTask> generateFrom(List<Node> orderedNodes) {
+ public List<RenderPipelineTask> generateFrom(List<NewNode> orderedNodes) {
long startTimeInNanoSeconds = System.nanoTime();
@@ -110,7 +109,7 @@ private void logIntermediateRendererListForDebugging(List<Node> orderedNodes) {
int enabledNodes = 0;
int potentialTasks = 0;
- for (Node node : orderedNodes) {
+ for (NewNode node : orderedNodes) {
if (node.isEnabled()) {
if (logger.isDebugEnabled()) {
// Marker tasks just add a dividing line to the logger output
