Commit 0f0d193a authored by Ell's avatar Ell

operations: replace use of no_cache with cache_policy

In all operations, replace the use of the deprecated
GeglOperationClass::no_cache with GeglOperationClass::cache_policy.

For ops that don't have a reason to control caching directly,
remove cache-policy setting altogether.
parent 36c7ebba
......@@ -221,7 +221,7 @@ gegl_op_class_init (GeglOpClass *klass)
"description", _("Use an existing in-memory GeglBuffer as image source."),
NULL);
operation_class->no_cache = TRUE;
operation_class->cache_policy = GEGL_CACHE_POLICY_NEVER;
}
#endif
......@@ -143,10 +143,10 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
filter_class = GEGL_OPERATION_FILTER_CLASS (klass);
operation_class->prepare = prepare;
operation_class->no_cache = TRUE;
operation_class->threaded = FALSE;
filter_class->process = process;
operation_class->prepare = prepare;
operation_class->cache_policy = GEGL_CACHE_POLICY_NEVER;
operation_class->threaded = FALSE;
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
"name", "gegl:copy-buffer",
......
......@@ -546,7 +546,7 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->opencl_support = 0;
operation_class->threaded = 0; //Due to IIR Implementation (smear-carry), we require single-process, linear operation.
operation_class->want_in_place = 0; //IIR Causes buffer build-up.
operation_class->no_cache = 1; //IIR Causes buffer build-up.
operation_class->cache_policy = GEGL_CACHE_POLICY_NEVER; //IIR Causes buffer build-up.
gegl_operation_class_set_keys (operation_class,
"name", "gegl:edge-neon",
......
......@@ -133,7 +133,6 @@ gegl_op_class_init (GeglOpClass *klass)
point_render_class->process = process;
operation_class->get_bounding_box = get_bounding_box;
operation_class->prepare = prepare;
operation_class->no_cache = TRUE;
gegl_operation_class_set_keys (operation_class,
"name", "gegl:linear-gradient",
......
......@@ -136,7 +136,6 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->process = process;
operation_class->get_bounding_box = get_bounding_box;
operation_class->get_cached_region = get_cached_region;;
operation_class->no_cache = FALSE;
gegl_operation_class_set_keys (operation_class,
"name" , "gegl:magick-load",
......
......@@ -103,8 +103,6 @@ gegl_op_class_init (GeglOpClass *klass)
point_render_class->process = process;
operation_class->get_bounding_box = get_bounding_box;
operation_class->prepare = prepare;
operation_class->no_cache = TRUE;
operation_class->get_cached_region = NULL;
gegl_operation_class_set_keys (operation_class,
"name", "gegl:perlin-noise",
......
......@@ -133,7 +133,7 @@ gegl_op_class_init (GeglOpClass *klass)
"description", _("Use an on-disk GeglBuffer as data source."),
NULL);
operation_class->no_cache = TRUE;
operation_class->cache_policy = GEGL_CACHE_POLICY_NEVER;
}
#endif
......@@ -120,7 +120,6 @@ gegl_op_class_init (GeglOpClass *klass)
point_render_class->process = process;
operation_class->get_bounding_box = get_bounding_box;
operation_class->prepare = prepare;
operation_class->no_cache = TRUE;
gegl_operation_class_set_keys (operation_class,
"name", "gegl:radial-gradient",
......
......@@ -374,7 +374,6 @@ gegl_op_class_init (GeglOpClass *klass)
point_filter_class = GEGL_OPERATION_POINT_FILTER_CLASS (klass);
operation_class->prepare = prepare;
operation_class->no_cache = TRUE;
operation_class->opencl_support = TRUE;
point_filter_class->process = process;
......
......@@ -77,7 +77,7 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_filter_class = GEGL_OPERATION_POINT_FILTER_CLASS (klass);
operation_class->no_cache = FALSE;
operation_class->cache_policy = GEGL_CACHE_POLICY_ALWAYS;
operation_class->want_in_place = FALSE;
operation_class->threaded = FALSE;
operation_class->prepare = prepare;
......
......@@ -102,9 +102,8 @@ gegl_op_class_init (GeglOpClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
operation_class->prepare = prepare;
operation_class->process = process;
operation_class->no_cache = FALSE;
operation_class->prepare = prepare;
operation_class->process = process;
gegl_operation_class_set_keys (operation_class,
"name", "gegl:cast-format",
......
......@@ -120,9 +120,8 @@ gegl_op_class_init (GeglOpClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
operation_class->prepare = prepare;
operation_class->process = process;
operation_class->no_cache = FALSE;
operation_class->prepare = prepare;
operation_class->process = process;
gegl_operation_class_set_keys (operation_class,
"name", "gegl:cast-space",
......
......@@ -103,7 +103,7 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->process = process;
operation_class->get_bounding_box = get_bounding_box;
operation_class->detect = detect;
operation_class->no_cache = TRUE;
operation_class->cache_policy = GEGL_CACHE_POLICY_NEVER;
gegl_operation_class_set_keys (operation_class,
"name", "gegl:clone",
......
......@@ -89,11 +89,10 @@ gegl_op_class_init (GeglOpClass *klass)
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationFilterClass *filter_class = GEGL_OPERATION_FILTER_CLASS (klass);
operation_class->prepare = prepare;
operation_class->process = operation_process;
operation_class->no_cache = FALSE;
operation_class->prepare = prepare;
operation_class->process = operation_process;
filter_class->process = process;
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
"name", "gegl:convert-format",
......
......@@ -250,7 +250,7 @@ gegl_op_class_init (GeglOpClass *klass)
"reference-composition", composition,
NULL);
operation_class->no_cache = TRUE;
operation_class->cache_policy = GEGL_CACHE_POLICY_NEVER;
}
#endif
......@@ -357,7 +357,6 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->attach = attach;
operation_class->detect = detect;
operation_class->no_cache = TRUE;
gegl_operation_class_set_keys (operation_class,
"name" , "gegl:load",
......
......@@ -578,7 +578,7 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->get_bounding_box = get_bounding_box;
operation_class->prepare = prepare;
operation_class->detect = detect;
/*operation_class->no_cache = TRUE;*/
/*operation_class->cache_policy = GEGL_CACHE_POLICY_NEVER;*/
gegl_operation_class_set_keys (operation_class,
"name", "gegl:path",
......
......@@ -102,7 +102,7 @@ gegl_op_class_init (GeglOpClass *klass)
source_class->process = process;
operation_class->get_bounding_box = get_bounding_box;
operation_class->prepare = prepare;
/*operation_class->no_cache = TRUE;*/
/*operation_class->cache_policy = GEGL_CACHE_POLICY_NEVER;*/
gegl_operation_class_set_keys (operation_class,
"name", "gegl:pixbuf",
......
......@@ -348,7 +348,7 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->get_bounding_box = get_bounding_box;
operation_class->prepare = prepare;
operation_class->detect = detect;
/*operation_class->no_cache = TRUE;*/
/*operation_class->cache_policy = GEGL_CACHE_POLICY_NEVER;*/
gegl_operation_class_set_keys (operation_class,
"name", "gegl:vector-stroke",
......
......@@ -195,7 +195,6 @@ op_transform_class_init (OpTransformClass *klass)
op_class->detect = gegl_transform_detect;
op_class->process = gegl_transform_process;
op_class->prepare = gegl_transform_prepare;
op_class->no_cache = TRUE;
op_class->threaded = TRUE;
klass->create_matrix = NULL;
......
......@@ -605,7 +605,7 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->get_bounding_box = get_bounding_box;
operation_class->prepare = prepare;
operation_class->detect = detect;
/*operation_class->no_cache = TRUE;*/
/*operation_class->cache_policy = GEGL_CACHE_POLICY_NEVER;*/
gegl_operation_class_set_keys (operation_class,
"name", "gegl:spyrograph",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment