Cleanup: ExecutionSystem::find_output_execution_groups.
This commit is contained in:
parent
8b2fb7aeed
commit
3d4a844a50
|
@ -179,10 +179,10 @@ void ExecutionSystem::execute()
|
|||
|
||||
WorkScheduler::start(this->m_context);
|
||||
|
||||
executeGroups(COM_PRIORITY_HIGH);
|
||||
execute_groups(COM_PRIORITY_HIGH);
|
||||
if (!this->getContext().isFastCalculation()) {
|
||||
executeGroups(COM_PRIORITY_MEDIUM);
|
||||
executeGroups(COM_PRIORITY_LOW);
|
||||
execute_groups(COM_PRIORITY_MEDIUM);
|
||||
execute_groups(COM_PRIORITY_LOW);
|
||||
}
|
||||
|
||||
WorkScheduler::finish();
|
||||
|
@ -199,26 +199,23 @@ void ExecutionSystem::execute()
|
|||
}
|
||||
}
|
||||
|
||||
void ExecutionSystem::executeGroups(CompositorPriority priority)
|
||||
void ExecutionSystem::execute_groups(CompositorPriority priority)
|
||||
{
|
||||
unsigned int index;
|
||||
std::vector<ExecutionGroup *> executionGroups;
|
||||
this->findOutputExecutionGroup(&executionGroups, priority);
|
||||
|
||||
for (index = 0; index < executionGroups.size(); index++) {
|
||||
ExecutionGroup *group = executionGroups[index];
|
||||
blender::Vector<ExecutionGroup *> execution_groups = find_output_execution_groups(priority);
|
||||
for (ExecutionGroup *group : execution_groups) {
|
||||
group->execute(this);
|
||||
}
|
||||
}
|
||||
|
||||
void ExecutionSystem::findOutputExecutionGroup(std::vector<ExecutionGroup *> *result,
|
||||
CompositorPriority priority) const
|
||||
blender::Vector<ExecutionGroup *> ExecutionSystem::find_output_execution_groups(
|
||||
CompositorPriority priority) const
|
||||
{
|
||||
unsigned int index;
|
||||
for (index = 0; index < this->m_groups.size(); index++) {
|
||||
ExecutionGroup *group = this->m_groups[index];
|
||||
blender::Vector<ExecutionGroup *> result;
|
||||
|
||||
for (ExecutionGroup *group : m_groups) {
|
||||
if (group->isOutputExecutionGroup() && group->getRenderPriotrity() == priority) {
|
||||
result->push_back(group);
|
||||
result.append(group);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -137,8 +137,8 @@ class ExecutionSystem {
|
|||
/**
|
||||
* find all execution group with output nodes
|
||||
*/
|
||||
void findOutputExecutionGroup(std::vector<ExecutionGroup *> *result,
|
||||
CompositorPriority priority) const;
|
||||
blender::Vector<ExecutionGroup *> find_output_execution_groups(
|
||||
CompositorPriority priority) const;
|
||||
|
||||
public:
|
||||
/**
|
||||
|
@ -181,7 +181,7 @@ class ExecutionSystem {
|
|||
}
|
||||
|
||||
private:
|
||||
void executeGroups(CompositorPriority priority);
|
||||
void execute_groups(CompositorPriority priority);
|
||||
|
||||
/* allow the DebugInfo class to look at internals */
|
||||
friend class DebugInfo;
|
||||
|
|
Loading…
Reference in New Issue