diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-08-31 06:36:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-08-31 07:33:57 +0300 |
commit | d718d6b4493429a1e688e874fd76963f98e3d034 (patch) | |
tree | efc5d34c087b6306571f469eeaf727d9e98d5234 /source/blender/compositor/intern/COM_ExecutionGroup.cc | |
parent | 29590eec6e21a4e1a2d45221e6dbb5733c354969 (diff) |
Cleanup: Use C style comments for descriptive text
Diffstat (limited to 'source/blender/compositor/intern/COM_ExecutionGroup.cc')
-rw-r--r-- | source/blender/compositor/intern/COM_ExecutionGroup.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/compositor/intern/COM_ExecutionGroup.cc b/source/blender/compositor/intern/COM_ExecutionGroup.cc index a45c453d7ed..505a4066a25 100644 --- a/source/blender/compositor/intern/COM_ExecutionGroup.cc +++ b/source/blender/compositor/intern/COM_ExecutionGroup.cc @@ -446,7 +446,7 @@ void ExecutionGroup::finalizeChunkExecution(int chunkNumber, MemoryBuffer **memo MEM_freeN(memoryBuffers); } if (this->m_bTree) { - // status report is only performed for top level Execution Groups. + /* Status report is only performed for top level Execution Groups. */ float progress = this->m_chunks_finished; progress /= this->m_chunks_len; this->m_bTree->progress(this->m_bTree->prh, progress); @@ -494,7 +494,7 @@ void ExecutionGroup::determineChunkRect(rcti *r_rect, const unsigned int chunkNu MemoryBuffer *ExecutionGroup::allocateOutputBuffer(rcti &rect) { - // we assume that this method is only called from complex execution groups. + /* We assume that this method is only called from complex execution groups. */ NodeOperation *operation = this->getOutputOperation(); if (operation->get_flags().is_write_buffer_operation) { WriteBufferOperation *writeOperation = (WriteBufferOperation *)operation; @@ -510,8 +510,9 @@ bool ExecutionGroup::scheduleAreaWhenPossible(ExecutionSystem *graph, rcti *area if (this->m_flags.single_threaded) { return scheduleChunkWhenPossible(graph, 0, 0); } - // find all chunks inside the rect - // determine minxchunk, minychunk, maxxchunk, maxychunk where x and y are chunknumbers + /* Find all chunks inside the rect + * determine `minxchunk`, `minychunk`, `maxxchunk`, `maxychunk` + * where x and y are chunk-numbers. */ int indexx, indexy; int minx = max_ii(area->xmin - m_viewerBorder.xmin, 0); |