diff options
author | Manuel Castilla <manzanillawork@gmail.com> | 2021-06-21 14:09:40 +0300 |
---|---|---|
committer | Manuel Castilla <manzanillawork@gmail.com> | 2021-06-21 14:51:51 +0300 |
commit | 4246898ad301b2a51dae5102be53b05e8d23e362 (patch) | |
tree | 34b5347beb35faa0dfcc110b67bdefdfa32bea9a /source/blender/compositor/intern/COM_MultiThreadedOperation.h | |
parent | 2851602052ccd03034bb0f16f71a07f2471da5ec (diff) |
Cleanup: move function parameter to member
Get current pass only when needed.
Diffstat (limited to 'source/blender/compositor/intern/COM_MultiThreadedOperation.h')
-rw-r--r-- | source/blender/compositor/intern/COM_MultiThreadedOperation.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/blender/compositor/intern/COM_MultiThreadedOperation.h b/source/blender/compositor/intern/COM_MultiThreadedOperation.h index 97c5fba4ead..6b8a2f273b7 100644 --- a/source/blender/compositor/intern/COM_MultiThreadedOperation.h +++ b/source/blender/compositor/intern/COM_MultiThreadedOperation.h @@ -28,6 +28,10 @@ class MultiThreadedOperation : public NodeOperation { * Number of execution passes. */ int m_num_passes; + /** + * Current execution pass. + */ + int current_pass_; protected: MultiThreadedOperation(); @@ -38,8 +42,7 @@ class MultiThreadedOperation : public NodeOperation { virtual void update_memory_buffer_started(MemoryBuffer *UNUSED(output), const rcti &UNUSED(output_rect), blender::Span<MemoryBuffer *> UNUSED(inputs), - ExecutionSystem &UNUSED(exec_system), - int UNUSED(current_pass)) + ExecutionSystem &UNUSED(exec_system)) { } @@ -49,8 +52,7 @@ class MultiThreadedOperation : public NodeOperation { virtual void update_memory_buffer_partial(MemoryBuffer *output, const rcti &output_rect, blender::Span<MemoryBuffer *> inputs, - ExecutionSystem &exec_system, - int current_pass) = 0; + ExecutionSystem &exec_system) = 0; /** * Called after an update memory buffer pass is executed. Single-threaded calls. @@ -58,8 +60,7 @@ class MultiThreadedOperation : public NodeOperation { virtual void update_memory_buffer_finished(MemoryBuffer *UNUSED(output), const rcti &UNUSED(output_rect), blender::Span<MemoryBuffer *> UNUSED(inputs), - ExecutionSystem &UNUSED(exec_system), - int UNUSED(current_pass)) + ExecutionSystem &UNUSED(exec_system)) { } |