Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/compositor/intern/COM_TiledExecutionModel.cc')
-rw-r--r--source/blender/compositor/intern/COM_TiledExecutionModel.cc44
1 files changed, 22 insertions, 22 deletions
diff --git a/source/blender/compositor/intern/COM_TiledExecutionModel.cc b/source/blender/compositor/intern/COM_TiledExecutionModel.cc
index a081b80349d..e9f7310cead 100644
--- a/source/blender/compositor/intern/COM_TiledExecutionModel.cc
+++ b/source/blender/compositor/intern/COM_TiledExecutionModel.cc
@@ -35,24 +35,24 @@ TiledExecutionModel::TiledExecutionModel(CompositorContext &context,
Span<ExecutionGroup *> groups)
: ExecutionModel(context, operations), groups_(groups)
{
- const bNodeTree *node_tree = context.getbNodeTree();
+ const bNodeTree *node_tree = context.get_bnodetree();
node_tree->stats_draw(node_tree->sdh, TIP_("Compositing | Determining resolution"));
unsigned int resolution[2];
for (ExecutionGroup *group : groups_) {
resolution[0] = 0;
resolution[1] = 0;
- group->determineResolution(resolution);
+ group->determine_resolution(resolution);
if (border_.use_render_border) {
const rctf *render_border = border_.render_border;
- group->setRenderBorder(
+ group->set_render_border(
render_border->xmin, render_border->xmax, render_border->ymin, render_border->ymax);
}
if (border_.use_viewer_border) {
const rctf *viewer_border = border_.viewer_border;
- group->setViewerBorder(
+ group->set_viewer_border(
viewer_border->xmin, viewer_border->xmax, viewer_border->ymin, viewer_border->ymax);
}
}
@@ -63,8 +63,8 @@ static void update_read_buffer_offset(Span<NodeOperation *> operations)
unsigned int order = 0;
for (NodeOperation *operation : operations) {
if (operation->get_flags().is_read_buffer_operation) {
- ReadBufferOperation *readOperation = (ReadBufferOperation *)operation;
- readOperation->setOffset(order);
+ ReadBufferOperation *read_operation = (ReadBufferOperation *)operation;
+ read_operation->set_offset(order);
order++;
}
}
@@ -75,8 +75,8 @@ static void init_write_operations_for_execution(Span<NodeOperation *> operations
{
for (NodeOperation *operation : operations) {
if (operation->get_flags().is_write_buffer_operation) {
- operation->setbNodeTree(bTree);
- operation->initExecution();
+ operation->set_bnodetree(bTree);
+ operation->init_execution();
}
}
}
@@ -85,8 +85,8 @@ static void link_write_buffers(Span<NodeOperation *> operations)
{
for (NodeOperation *operation : operations) {
if (operation->get_flags().is_read_buffer_operation) {
- ReadBufferOperation *readOperation = static_cast<ReadBufferOperation *>(operation);
- readOperation->updateMemoryBuffer();
+ ReadBufferOperation *read_operation = static_cast<ReadBufferOperation *>(operation);
+ read_operation->update_memory_buffer();
}
}
}
@@ -96,8 +96,8 @@ static void init_non_write_operations_for_execution(Span<NodeOperation *> operat
{
for (NodeOperation *operation : operations) {
if (!operation->get_flags().is_write_buffer_operation) {
- operation->setbNodeTree(bTree);
- operation->initExecution();
+ operation->set_bnodetree(bTree);
+ operation->init_execution();
}
}
}
@@ -106,27 +106,27 @@ static void init_execution_groups_for_execution(Span<ExecutionGroup *> groups,
const int chunk_size)
{
for (ExecutionGroup *execution_group : groups) {
- execution_group->setChunksize(chunk_size);
- execution_group->initExecution();
+ execution_group->set_chunksize(chunk_size);
+ execution_group->init_execution();
}
}
void TiledExecutionModel::execute(ExecutionSystem &exec_system)
{
- const bNodeTree *editingtree = this->context_.getbNodeTree();
+ const bNodeTree *editingtree = this->context_.get_bnodetree();
editingtree->stats_draw(editingtree->sdh, TIP_("Compositing | Initializing execution"));
update_read_buffer_offset(operations_);
- init_write_operations_for_execution(operations_, context_.getbNodeTree());
+ init_write_operations_for_execution(operations_, context_.get_bnodetree());
link_write_buffers(operations_);
- init_non_write_operations_for_execution(operations_, context_.getbNodeTree());
- init_execution_groups_for_execution(groups_, context_.getChunksize());
+ init_non_write_operations_for_execution(operations_, context_.get_bnodetree());
+ init_execution_groups_for_execution(groups_, context_.get_chunksize());
WorkScheduler::start(context_);
execute_groups(eCompositorPriority::High, exec_system);
- if (!context_.isFastCalculation()) {
+ if (!context_.is_fast_calculation()) {
execute_groups(eCompositorPriority::Medium, exec_system);
execute_groups(eCompositorPriority::Low, exec_system);
}
@@ -136,11 +136,11 @@ void TiledExecutionModel::execute(ExecutionSystem &exec_system)
editingtree->stats_draw(editingtree->sdh, TIP_("Compositing | De-initializing execution"));
for (NodeOperation *operation : operations_) {
- operation->deinitExecution();
+ operation->deinit_execution();
}
for (ExecutionGroup *execution_group : groups_) {
- execution_group->deinitExecution();
+ execution_group->deinit_execution();
}
}
@@ -149,7 +149,7 @@ void TiledExecutionModel::execute_groups(eCompositorPriority priority,
{
for (ExecutionGroup *execution_group : groups_) {
if (execution_group->get_flags().is_output &&
- execution_group->getRenderPriority() == priority) {
+ execution_group->get_render_priority() == priority) {
execution_group->execute(&exec_system);
}
}