[gegl/gsoc2009-gpu] Introduce GPU subsystem startup and shutdown
- From: Jerson Michael Perpetua <jperpetua src gnome org>
- To: svn-commits-list gnome org
- Subject: [gegl/gsoc2009-gpu] Introduce GPU subsystem startup and shutdown
- Date: Wed, 8 Jul 2009 19:26:41 +0000 (UTC)
commit 76509cdd3e3508f1290f82e37dfa238bc98de014
Author: Jerson Michael Perpetua <jersonperpetua gmail com>
Date: Wed Jul 8 06:52:13 2009 +0800
Introduce GPU subsystem startup and shutdown
Initialize and exit GPU subsystem when GEGL initializes and exits,
respectively.
gegl/gegl-init.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gegl/gegl-init.c b/gegl/gegl-init.c
index 5352439..b08c9f9 100644
--- a/gegl/gegl-init.c
+++ b/gegl/gegl-init.c
@@ -78,6 +78,8 @@ guint gegl_debug_flags = 0;
#include "buffer/gegl-buffer-private.h"
#include "gegl-config.h"
+#include "gpu/gegl-gpu-init.h"
+
/* if this function is made to return NULL swapping is disabled */
const gchar *
@@ -160,6 +162,11 @@ gegl_init (gint *argc,
if (config)
return;
+ /* initialize GPU subsystem and let it handle the program command-line
+ * first
+ */
+ gegl_gpu_init (argc, argv);
+
/* If any command-line actions are ever added to GEGL, then the commented
* out code below should be used. Until then, we simply call the parse hook
* directly.
@@ -398,7 +405,11 @@ gegl_exit (void)
g_printf ("\n");
+ /* XXX: Should probably output some debug information. Everybody else is
+ * doing it, why aren't we?
+ */
gegl_buffer_iterator_cleanup ();
+ gegl_gpu_exit ();
}
static void swap_clean (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]