mirror of https://github.com/GNOME/gimp.git
app: replace use of deprecated dont-cache/no_cache with cache-policy
Replace the use of the deprecated GeglNode::dont-cache property, and GeglOperationClass::no_cache field, with GeglNode::cache-policy and GeglOperationClass::cache_policy, respectively. See commit gegl@7f24430cda0d8c3eff311868823d445edc2a4e12.
This commit is contained in:
parent
42975e52a5
commit
7489f0aece
|
@ -83,7 +83,7 @@ gimp_operation_buffer_source_validate_class_init (GimpOperationBufferSourceValid
|
|||
operation_class->process = gimp_operation_buffer_source_validate_process;
|
||||
|
||||
operation_class->threaded = FALSE;
|
||||
operation_class->no_cache = TRUE;
|
||||
operation_class->cache_policy = GEGL_CACHE_POLICY_NEVER;
|
||||
|
||||
gegl_operation_class_set_keys (operation_class,
|
||||
"name", "gimp:buffer-source-validate",
|
||||
|
|
|
@ -71,7 +71,7 @@ gimp_operation_cage_coef_calc_class_init (GimpOperationCageCoefCalcClass *klass)
|
|||
|
||||
operation_class->prepare = gimp_operation_cage_coef_calc_prepare;
|
||||
operation_class->get_bounding_box = gimp_operation_cage_coef_calc_get_bounding_box;
|
||||
operation_class->no_cache = FALSE;
|
||||
operation_class->cache_policy = GEGL_CACHE_POLICY_ALWAYS;
|
||||
operation_class->get_cached_region = NULL;
|
||||
|
||||
source_class->process = gimp_operation_cage_coef_calc_process;
|
||||
|
|
|
@ -108,7 +108,6 @@ gimp_operation_cage_transform_class_init (GimpOperationCageTransformClass *klass
|
|||
|
||||
operation_class->get_required_for_output = gimp_operation_cage_transform_get_required_for_output;
|
||||
operation_class->get_cached_region = gimp_operation_cage_transform_get_cached_region;
|
||||
operation_class->no_cache = FALSE;
|
||||
operation_class->get_bounding_box = gimp_operation_cage_transform_get_bounding_box;
|
||||
/* XXX Temporarily disable multi-threading on this operation because
|
||||
* it is much faster when single-threaded. See bug 787663.
|
||||
|
|
|
@ -171,7 +171,7 @@ gimp_perspective_clone_paint (GimpPaintCore *paint_core,
|
|||
clone->node = gegl_node_new ();
|
||||
|
||||
g_object_set (clone->node,
|
||||
"dont-cache", TRUE,
|
||||
"cache-policy", GEGL_CACHE_POLICY_NEVER,
|
||||
NULL);
|
||||
|
||||
switch (clone_options->clone_type)
|
||||
|
|
Loading…
Reference in New Issue