Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.h
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
| namespace blender { | namespace blender { | ||||
| namespace deg { | namespace deg { | ||||
| struct Depsgraph; | struct Depsgraph; | ||||
| class DepsgraphNodeBuilder; | class DepsgraphNodeBuilder; | ||||
| struct IDNode; | struct IDNode; | ||||
| /* Get fully expanded (ready for use) copy-on-write data-block for the given | |||||
| * original data-block. | |||||
| */ | |||||
| ID *deg_expand_copy_on_write_datablock(const struct Depsgraph *depsgraph, | |||||
| const IDNode *id_node, | |||||
| DepsgraphNodeBuilder *node_builder = nullptr, | |||||
| bool create_placeholders = false); | |||||
| ID *deg_expand_copy_on_write_datablock(const struct Depsgraph *depsgraph, | |||||
| struct ID *id_orig, | |||||
| DepsgraphNodeBuilder *node_builder = nullptr, | |||||
| bool create_placeholders = false); | |||||
| /* Makes sure given CoW data-block is brought back to state of the original | /* Makes sure given CoW data-block is brought back to state of the original | ||||
| * data-block. | * data-block. | ||||
| */ | */ | ||||
| ID *deg_update_copy_on_write_datablock(const struct Depsgraph *depsgraph, const IDNode *id_node); | ID *deg_update_copy_on_write_datablock(const struct Depsgraph *depsgraph, const IDNode *id_node); | ||||
| ID *deg_update_copy_on_write_datablock(const struct Depsgraph *depsgraph, struct ID *id_orig); | ID *deg_update_copy_on_write_datablock(const struct Depsgraph *depsgraph, struct ID *id_orig); | ||||
| /* Helper function which frees memory used by copy-on-written data-block. */ | /* Helper function which frees memory used by copy-on-written data-block. */ | ||||
| void deg_free_copy_on_write_datablock(struct ID *id_cow); | void deg_free_copy_on_write_datablock(struct ID *id_cow); | ||||
| Show All 31 Lines | |||||