Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/intern/COM_ExecutionGroup.cc
| Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| bool ExecutionGroup::addOperation(NodeOperation *operation) | bool ExecutionGroup::addOperation(NodeOperation *operation) | ||||
| { | { | ||||
| if (!can_contain(*operation)) { | if (!can_contain(*operation)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if (!operation->get_flags().is_read_buffer_operation && | if ((!operation->get_flags().is_read_buffer_operation && | ||||
| !operation->get_flags().is_write_buffer_operation) { | !operation->get_flags().is_write_buffer_operation) || | ||||
| operation->get_flags().single_threaded) { | |||||
| m_flags.complex = operation->get_flags().complex; | m_flags.complex = operation->get_flags().complex; | ||||
| m_flags.open_cl = operation->get_flags().open_cl; | m_flags.open_cl = operation->get_flags().open_cl; | ||||
| m_flags.single_threaded = operation->get_flags().single_threaded; | m_flags.single_threaded = operation->get_flags().single_threaded; | ||||
| m_flags.initialized = true; | m_flags.initialized = true; | ||||
| } | } | ||||
| m_operations.append(operation); | m_operations.append(operation); | ||||
| ▲ Show 20 Lines • Show All 446 Lines • Show Last 20 Lines | |||||