[gimp] app: remove support for the old GeglConfig:cache-size property
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove support for the old GeglConfig:cache-size property
- Date: Wed, 5 Jun 2013 22:04:44 +0000 (UTC)
commit 30e1f39ba6abbff1c385dd3cc127e6fd5fce239c
Author: Michael Natterer <mitch gimp org>
Date: Thu Jun 6 00:03:26 2013 +0200
app: remove support for the old GeglConfig:cache-size property
app/gegl/gimp-gegl.c | 44 ++++++++------------------------------------
1 files changed, 8 insertions(+), 36 deletions(-)
---
diff --git a/app/gegl/gimp-gegl.c b/app/gegl/gimp-gegl.c
index 88b53da..84e592e 100644
--- a/app/gegl/gimp-gegl.c
+++ b/app/gegl/gimp-gegl.c
@@ -52,31 +52,13 @@ gimp_gegl_init (Gimp *gimp)
#warning not setting GeglConfig:threads
#endif
- if (g_object_class_find_property (G_OBJECT_GET_CLASS (gegl_config ()),
- "tile-cache-size"))
- {
- g_object_set (gegl_config (),
- "tile-cache-size", (guint64) config->tile_cache_size,
-#if 0
- "threads", config->num_processors,
-#endif
- "use-opencl", config->use_opencl,
- 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),
+ g_object_set (gegl_config (),
+ "tile-cache-size", (guint64) config->tile_cache_size,
#if 0
- "threads", config->num_processors,
+ "threads", config->num_processors,
#endif
- "use-opencl", config->use_opencl,
- NULL);
- }
+ "use-opencl", config->use_opencl,
+ NULL);
/* turn down the precision of babl - permitting use of lookup tables for
* gamma conversions, this precision is anyways high enough for both 8bit
@@ -104,19 +86,9 @@ gimp_gegl_init (Gimp *gimp)
static void
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 (),
- "tile-cache-size", (guint64) config->tile_cache_size,
- NULL);
- }
- else
- {
- g_object_set (gegl_config (),
- "cache-size", (gint) MIN (config->tile_cache_size, G_MAXINT),
- NULL);
- }
+ g_object_set (gegl_config (),
+ "tile-cache-size", (guint64) config->tile_cache_size,
+ NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]