Cleanup: Use snake case for method names.

This commit is contained in:
2021-02-17 16:23:21 +01:00
parent cc45dfa07f
commit b452438d0a
3 changed files with 3 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ ExecutionSystem::ExecutionSystem(RenderData *rd,
this->m_context.setQuality((CompositorQuality)editingtree->edit_quality);
}
this->m_context.setRendering(rendering);
this->m_context.setHasActiveOpenCLDevices(WorkScheduler::hasGPUDevices() &&
this->m_context.setHasActiveOpenCLDevices(WorkScheduler::has_gpu_devices() &&
(editingtree->flag & NTREE_COM_OPENCL));
this->m_context.setRenderData(rd);

View File

@@ -178,7 +178,7 @@ void WorkScheduler::stop()
#endif
}
bool WorkScheduler::hasGPUDevices()
bool WorkScheduler::has_gpu_devices()
{
#if COM_CURRENT_THREADING_MODEL == COM_TM_QUEUE
# ifdef COM_OPENCL_ENABLED

View File

@@ -102,7 +102,7 @@ class WorkScheduler {
* A node can generate a different operation tree when OpenCLDevices exists.
* \see CompositorContext.getHasActiveOpenCLDevices
*/
static bool hasGPUDevices();
static bool has_gpu_devices();
static int current_thread_id();