libgimpbase, libgimp, app: pass misc. GEGL config to plug-ins

Pass the GEGL tile-cache size, swap path, and thread-count to plug-
ins as part of their config, and have libgimp set the plug-in's
GeglConfig accordingly upon initialization.
This commit is contained in:
Ell
2018-11-19 16:13:07 -05:00
parent 7de86c63e6
commit 0a39f362b5
4 changed files with 42 additions and 1 deletions

View File

@ -2338,6 +2338,9 @@ gimp_config (GPConfig *config)
gimp_cpu_accel_set_use (config->use_cpu_accel);
g_object_set (gegl_config (),
"tile-cache-size", config->tile_cache_size,
"swap", config->swap_path,
"threads", (gint) config->num_processors,
"use-opencl", config->use_opencl,
"application-license", "GPL3",
NULL);