app: remove support for the old GeglConfig:cache-size property
This commit is contained in:
@ -52,9 +52,6 @@ gimp_gegl_init (Gimp *gimp)
|
|||||||
#warning not setting GeglConfig:threads
|
#warning not setting GeglConfig:threads
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (g_object_class_find_property (G_OBJECT_GET_CLASS (gegl_config ()),
|
|
||||||
"tile-cache-size"))
|
|
||||||
{
|
|
||||||
g_object_set (gegl_config (),
|
g_object_set (gegl_config (),
|
||||||
"tile-cache-size", (guint64) config->tile_cache_size,
|
"tile-cache-size", (guint64) config->tile_cache_size,
|
||||||
#if 0
|
#if 0
|
||||||
@ -62,21 +59,6 @@ gimp_gegl_init (Gimp *gimp)
|
|||||||
#endif
|
#endif
|
||||||
"use-opencl", config->use_opencl,
|
"use-opencl", config->use_opencl,
|
||||||
NULL);
|
NULL);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
#ifdef __GNUC__
|
|
||||||
#warning limiting tile cache size to G_MAXINT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
g_object_set (gegl_config (),
|
|
||||||
"cache-size", (gint) MIN (config->tile_cache_size, G_MAXINT),
|
|
||||||
#if 0
|
|
||||||
"threads", config->num_processors,
|
|
||||||
#endif
|
|
||||||
"use-opencl", config->use_opencl,
|
|
||||||
NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* turn down the precision of babl - permitting use of lookup tables for
|
/* turn down the precision of babl - permitting use of lookup tables for
|
||||||
* gamma conversions, this precision is anyways high enough for both 8bit
|
* gamma conversions, this precision is anyways high enough for both 8bit
|
||||||
@ -103,21 +85,11 @@ gimp_gegl_init (Gimp *gimp)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
gimp_gegl_notify_tile_cache_size (GimpGeglConfig *config)
|
gimp_gegl_notify_tile_cache_size (GimpGeglConfig *config)
|
||||||
{
|
|
||||||
if (g_object_class_find_property (G_OBJECT_GET_CLASS (gegl_config ()),
|
|
||||||
"tile-cache-size"))
|
|
||||||
{
|
{
|
||||||
g_object_set (gegl_config (),
|
g_object_set (gegl_config (),
|
||||||
"tile-cache-size", (guint64) config->tile_cache_size,
|
"tile-cache-size", (guint64) config->tile_cache_size,
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
g_object_set (gegl_config (),
|
|
||||||
"cache-size", (gint) MIN (config->tile_cache_size, G_MAXINT),
|
|
||||||
NULL);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gimp_gegl_notify_num_processors (GimpGeglConfig *config)
|
gimp_gegl_notify_num_processors (GimpGeglConfig *config)
|
||||||
|
|||||||
Reference in New Issue
Block a user