diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-04-02 17:11:13 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-04-02 17:11:13 +0300 |
commit | b6ab1107c20228d441a6d992eb11c639ed2ce1d0 (patch) | |
tree | a15f14a3ca58854ca93d5cec315ad754e8ce024d /source/blender/compositor/intern | |
parent | 5a491adc17deb59f7c54fa60e5e8344b1daad359 (diff) |
Cleanup: Added leading `e` to enum types.
Diffstat (limited to 'source/blender/compositor/intern')
9 files changed, 23 insertions, 23 deletions
diff --git a/source/blender/compositor/intern/COM_CompositorContext.cc b/source/blender/compositor/intern/COM_CompositorContext.cc index fdd47a6ca79..f70f3a8ebfc 100644 --- a/source/blender/compositor/intern/COM_CompositorContext.cc +++ b/source/blender/compositor/intern/COM_CompositorContext.cc @@ -28,7 +28,7 @@ CompositorContext::CompositorContext() { this->m_scene = nullptr; this->m_rd = nullptr; - this->m_quality = CompositorQuality::High; + this->m_quality = eCompositorQuality::High; this->m_hasActiveOpenCLDevices = false; this->m_fastCalculation = false; this->m_viewSettings = nullptr; diff --git a/source/blender/compositor/intern/COM_CompositorContext.h b/source/blender/compositor/intern/COM_CompositorContext.h index bdb1d4614f8..e6164246bdd 100644 --- a/source/blender/compositor/intern/COM_CompositorContext.h +++ b/source/blender/compositor/intern/COM_CompositorContext.h @@ -48,7 +48,7 @@ class CompositorContext { * This field is initialized in ExecutionSystem and must only be read from that point on. * \see ExecutionSystem */ - CompositorQuality m_quality; + eCompositorQuality m_quality; Scene *m_scene; @@ -205,7 +205,7 @@ class CompositorContext { /** * \brief set the quality */ - void setQuality(CompositorQuality quality) + void setQuality(eCompositorQuality quality) { this->m_quality = quality; } @@ -213,7 +213,7 @@ class CompositorContext { /** * \brief get the quality */ - CompositorQuality getQuality() const + eCompositorQuality getQuality() const { return this->m_quality; } diff --git a/source/blender/compositor/intern/COM_Enums.cc b/source/blender/compositor/intern/COM_Enums.cc index 68fd5c9ef93..d218de92544 100644 --- a/source/blender/compositor/intern/COM_Enums.cc +++ b/source/blender/compositor/intern/COM_Enums.cc @@ -20,18 +20,18 @@ namespace blender::compositor { -std::ostream &operator<<(std::ostream &os, const CompositorPriority &priority) +std::ostream &operator<<(std::ostream &os, const eCompositorPriority &priority) { switch (priority) { - case CompositorPriority::High: { + case eCompositorPriority::High: { os << "Priority::High"; break; } - case CompositorPriority::Medium: { + case eCompositorPriority::Medium: { os << "Priority::Medium"; break; } - case CompositorPriority::Low: { + case eCompositorPriority::Low: { os << "Priority::Low"; break; } diff --git a/source/blender/compositor/intern/COM_Enums.h b/source/blender/compositor/intern/COM_Enums.h index b0276b4b3d9..f65ce3e856e 100644 --- a/source/blender/compositor/intern/COM_Enums.h +++ b/source/blender/compositor/intern/COM_Enums.h @@ -29,7 +29,7 @@ namespace blender::compositor { * \see CompositorContext.quality * \ingroup Execution */ -enum class CompositorQuality { +enum class eCompositorQuality { /** \brief High quality setting */ High = 0, /** \brief Medium quality setting */ @@ -42,7 +42,7 @@ enum class CompositorQuality { * \brief Possible priority settings * \ingroup Execution */ -enum class CompositorPriority { +enum class eCompositorPriority { /** \brief High quality setting */ High = 2, /** \brief Medium quality setting */ @@ -70,7 +70,7 @@ enum class eWorkPackageState { Executed = 2, }; -std::ostream &operator<<(std::ostream &os, const CompositorPriority &priority); +std::ostream &operator<<(std::ostream &os, const eCompositorPriority &priority); std::ostream &operator<<(std::ostream &os, const eWorkPackageState &execution_state); } // namespace blender::compositor diff --git a/source/blender/compositor/intern/COM_ExecutionGroup.cc b/source/blender/compositor/intern/COM_ExecutionGroup.cc index e18be191da4..80d453bf7f9 100644 --- a/source/blender/compositor/intern/COM_ExecutionGroup.cc +++ b/source/blender/compositor/intern/COM_ExecutionGroup.cc @@ -92,7 +92,7 @@ std::ostream &operator<<(std::ostream &os, const ExecutionGroup &execution_group return os; } -CompositorPriority ExecutionGroup::getRenderPriority() +eCompositorPriority ExecutionGroup::getRenderPriority() { return this->getOutputOperation()->getRenderPriority(); } diff --git a/source/blender/compositor/intern/COM_ExecutionGroup.h b/source/blender/compositor/intern/COM_ExecutionGroup.h index ebe942402f9..f9cbceffd3e 100644 --- a/source/blender/compositor/intern/COM_ExecutionGroup.h +++ b/source/blender/compositor/intern/COM_ExecutionGroup.h @@ -389,7 +389,7 @@ class ExecutionGroup { * \brief get the Render priority of this ExecutionGroup * \see ExecutionSystem.execute */ - CompositorPriority getRenderPriority(); + eCompositorPriority getRenderPriority(); /** * \brief set border for viewer operation diff --git a/source/blender/compositor/intern/COM_ExecutionSystem.cc b/source/blender/compositor/intern/COM_ExecutionSystem.cc index 9a3dc6ee56f..cb8c1b9326d 100644 --- a/source/blender/compositor/intern/COM_ExecutionSystem.cc +++ b/source/blender/compositor/intern/COM_ExecutionSystem.cc @@ -55,10 +55,10 @@ ExecutionSystem::ExecutionSystem(RenderData *rd, this->m_context.setFastCalculation(fastcalculation); /* initialize the CompositorContext */ if (rendering) { - this->m_context.setQuality((CompositorQuality)editingtree->render_quality); + this->m_context.setQuality((eCompositorQuality)editingtree->render_quality); } else { - this->m_context.setQuality((CompositorQuality)editingtree->edit_quality); + this->m_context.setQuality((eCompositorQuality)editingtree->edit_quality); } this->m_context.setRendering(rendering); this->m_context.setHasActiveOpenCLDevices(WorkScheduler::has_gpu_devices() && @@ -193,10 +193,10 @@ void ExecutionSystem::execute() init_execution_groups_for_execution(m_groups, m_context.getChunksize()); WorkScheduler::start(this->m_context); - execute_groups(CompositorPriority::High); + execute_groups(eCompositorPriority::High); if (!this->getContext().isFastCalculation()) { - execute_groups(CompositorPriority::Medium); - execute_groups(CompositorPriority::Low); + execute_groups(eCompositorPriority::Medium); + execute_groups(eCompositorPriority::Low); } WorkScheduler::finish(); WorkScheduler::stop(); @@ -212,7 +212,7 @@ void ExecutionSystem::execute() } } -void ExecutionSystem::execute_groups(CompositorPriority priority) +void ExecutionSystem::execute_groups(eCompositorPriority priority) { for (ExecutionGroup *execution_group : m_groups) { if (execution_group->get_flags().is_output && diff --git a/source/blender/compositor/intern/COM_ExecutionSystem.h b/source/blender/compositor/intern/COM_ExecutionSystem.h index b8dcd90e1a6..672bda68668 100644 --- a/source/blender/compositor/intern/COM_ExecutionSystem.h +++ b/source/blender/compositor/intern/COM_ExecutionSystem.h @@ -179,7 +179,7 @@ class ExecutionSystem { } private: - void execute_groups(CompositorPriority priority); + void execute_groups(eCompositorPriority priority); /* allow the DebugInfo class to look at internals */ friend class DebugInfo; diff --git a/source/blender/compositor/intern/COM_NodeOperation.h b/source/blender/compositor/intern/COM_NodeOperation.h index 7e388fba2b1..a613955d21a 100644 --- a/source/blender/compositor/intern/COM_NodeOperation.h +++ b/source/blender/compositor/intern/COM_NodeOperation.h @@ -452,11 +452,11 @@ class NodeOperation { /** * \brief get the render priority of this node. * \note only applicable for output operations like ViewerOperation - * \return CompositorPriority + * \return eCompositorPriority */ - virtual CompositorPriority getRenderPriority() const + virtual eCompositorPriority getRenderPriority() const { - return CompositorPriority::Low; + return eCompositorPriority::Low; } inline bool isBraked() const |