diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-03-31 13:45:42 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-03-31 15:43:14 +0300 |
commit | 1a7b94236e0f4a1ff382a9c17e723c53130ce872 (patch) | |
tree | 1e9a297bf1cdd261c9011b6675b3a919a8ede5d3 /source/blender/compositor/COM_defines.h | |
parent | 14901e37741981a1317e6eb29f8be7c96526293d (diff) |
Compositor: Keep WorkPackages and Data Around.
WorkPackages struct was created when scheduled. This patch keeps the
WorkPackages around and stores additional data with the workpackages.
The speedup is to small to notice, but it is needed as preparation
to introduce a faster scheduling method.
Diffstat (limited to 'source/blender/compositor/COM_defines.h')
-rw-r--r-- | source/blender/compositor/COM_defines.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/source/blender/compositor/COM_defines.h b/source/blender/compositor/COM_defines.h index b8f10448030..5a5868f1909 100644 --- a/source/blender/compositor/COM_defines.h +++ b/source/blender/compositor/COM_defines.h @@ -79,6 +79,25 @@ enum class CompositorPriority { Low = 0, }; +/** + * \brief the execution state of a chunk in an ExecutionGroup + * \ingroup Execution + */ +enum class eChunkExecutionState { + /** + * \brief chunk is not yet scheduled + */ + NotScheduled = 0, + /** + * \brief chunk is scheduled, but not yet executed + */ + Scheduled = 1, + /** + * \brief chunk is executed. + */ + Executed = 2, +}; + // configurable items // chunk size determination |