[gimp] app: remove the pixel-processor



commit 127aba6dc95b12167c2d06d19f85292ecebdcf20
Author: Michael Natterer <mitch gimp org>
Date:   Sat May 19 00:56:27 2012 +0200

    app: remove the pixel-processor

 app/base/Makefile.am        |    2 -
 app/base/base.c             |   18 --
 app/base/pixel-processor.c  |  495 -------------------------------------------
 app/base/pixel-processor.h  |   50 -----
 app/config/gimpgeglconfig.c |    4 +-
 5 files changed, 2 insertions(+), 567 deletions(-)
---
diff --git a/app/base/Makefile.am b/app/base/Makefile.am
index bcf0a9a..7e2f8c9 100644
--- a/app/base/Makefile.am
+++ b/app/base/Makefile.am
@@ -20,8 +20,6 @@ libappbase_a_SOURCES = \
 	base.c			\
 	base.h			\
 	base-types.h		\
-	pixel-processor.c	\
-	pixel-processor.h	\
 	pixel-region.c		\
 	pixel-region.h		\
 	siox.c			\
diff --git a/app/base/base.c b/app/base/base.c
index e5c0c0a..44bfe94 100644
--- a/app/base/base.c
+++ b/app/base/base.c
@@ -35,7 +35,6 @@
 #include "config/gimpgeglconfig.h"
 
 #include "base.h"
-#include "pixel-processor.h"
 #include "tile-cache.h"
 #include "tile-manager.h"
 #include "tile-swap.h"
@@ -46,9 +45,6 @@ static void   base_toast_old_swap_files   (const gchar *swap_path);
 static void   base_tile_cache_size_notify (GObject     *config,
                                            GParamSpec  *param_spec,
                                            gpointer     data);
-static void   base_num_processors_notify  (GObject     *config,
-                                           GParamSpec  *param_spec,
-                                           gpointer     data);
 
 
 static GimpGeglConfig *base_config = NULL;
@@ -97,11 +93,6 @@ base_init (GimpGeglConfig *config,
 
   g_free (temp_dir);
 
-  pixel_processor_init (config->num_processors);
-  g_signal_connect (config, "notify::num-processors",
-                    G_CALLBACK (base_num_processors_notify),
-                    NULL);
-
   return swap_is_ok;
 }
 
@@ -114,7 +105,6 @@ base_exit (void)
   tile_manager_exit ();
 #endif
 
-  pixel_processor_exit ();
   tile_cache_exit ();
   tile_swap_exit ();
 
@@ -190,11 +180,3 @@ base_tile_cache_size_notify (GObject    *config,
 {
   tile_cache_set_size (GIMP_GEGL_CONFIG (config)->tile_cache_size);
 }
-
-static void
-base_num_processors_notify (GObject    *config,
-                            GParamSpec *param_spec,
-                            gpointer    data)
-{
-  pixel_processor_set_num_threads (GIMP_GEGL_CONFIG (config)->num_processors);
-}
diff --git a/app/config/gimpgeglconfig.c b/app/config/gimpgeglconfig.c
index a1c42ba..e76bd0e 100644
--- a/app/config/gimpgeglconfig.c
+++ b/app/config/gimpgeglconfig.c
@@ -31,8 +31,6 @@
 
 #include "core/core-types.h" /* eek */
 
-#include "base/pixel-processor.h"
-
 #include "gimprc-blurbs.h"
 #include "gimpgeglconfig.h"
 
@@ -43,6 +41,8 @@
 #include "gimp-intl.h"
 
 
+#define GIMP_MAX_NUM_THREADS 16
+
 enum
 {
   PROP_0,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]