[Bf-blender-cvs] [5360aab] depsgraph_refactor: Depsgraph: Code cleanup, no need to have public deg_schedule_children now

Sergey Sharybin noreply at git.blender.org
Thu Dec 18 16:37:19 CET 2014


Commit: 5360aab9c43b7b398bb5a4a2d0444fe15750296a
Author: Sergey Sharybin
Date:   Thu Dec 18 20:36:19 2014 +0500
Branches: depsgraph_refactor
https://developer.blender.org/rB5360aab9c43b7b398bb5a4a2d0444fe15750296a

Depsgraph: Code cleanup, no need to have public deg_schedule_children now

===================================================================

M	source/blender/depsgraph/intern/depsgraph_eval.cpp
M	source/blender/depsgraph/intern/depsgraph_eval.h

===================================================================

diff --git a/source/blender/depsgraph/intern/depsgraph_eval.cpp b/source/blender/depsgraph/intern/depsgraph_eval.cpp
index 36680e4..d5dfbbf 100644
--- a/source/blender/depsgraph/intern/depsgraph_eval.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_eval.cpp
@@ -70,6 +70,9 @@ void DEG_set_eval_mode(eDEG_EvalMode mode)
 /* ********************** */
 /* Evaluation Entrypoints */
 
+static void deg_schedule_children(TaskPool *pool, EvaluationContext *eval_ctx,
+                                  Depsgraph *graph, OperationDepsNode *node);
+
 struct DepsgraphEvalState {
 	EvaluationContext *eval_ctx;
 	Depsgraph *graph;
@@ -182,8 +185,8 @@ static void schedule_graph(TaskPool *pool, EvaluationContext *eval_ctx, Depsgrap
 	BLI_spin_unlock(&graph->lock);
 }
 
-void deg_schedule_children(TaskPool *pool, EvaluationContext *eval_ctx,
-                           Depsgraph *graph, OperationDepsNode *node)
+static void deg_schedule_children(TaskPool *pool, EvaluationContext *eval_ctx,
+                                  Depsgraph *graph, OperationDepsNode *node)
 {
 	for (OperationDepsNode::Relations::const_iterator it = node->outlinks.begin();
 	     it != node->outlinks.end();
diff --git a/source/blender/depsgraph/intern/depsgraph_eval.h b/source/blender/depsgraph/intern/depsgraph_eval.h
index 8223b89..ce4339e 100644
--- a/source/blender/depsgraph/intern/depsgraph_eval.h
+++ b/source/blender/depsgraph/intern/depsgraph_eval.h
@@ -130,11 +130,4 @@ typedef struct DEG_PoseContext {
 } DEG_PoseContext;
 #endif
 
-/* ****************************************** */
-
-struct Depsgraph;
-struct OperationDepsNode;
-struct TaskPool;
-void deg_schedule_children(TaskPool *pool, EvaluationContext *eval_ctx, Depsgraph *graph, OperationDepsNode *node);
-
-#endif // __DEPSGRAPH_EVAL_TYPES_H__
+#endif  /* __DEPSGRAPH_EVAL_TYPES_H__ */




More information about the Bf-blender-cvs mailing list