[gimp/pippin/goat-invasion] add a util call to get the geglbuffer for a drawable



commit eba428b3f56143f7c9eb34831d7efd72e14ddc53
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Tue Mar 13 16:59:41 2012 +0000

    add a util call to get the geglbuffer for a drawable

 app/gegl/gimptilebackendtilemanager.c |    8 ++++++++
 app/gegl/gimptilebackendtilemanager.h |    6 ++++--
 2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/app/gegl/gimptilebackendtilemanager.c b/app/gegl/gimptilebackendtilemanager.c
index 10f5dc5..82544be 100644
--- a/app/gegl/gimptilebackendtilemanager.c
+++ b/app/gegl/gimptilebackendtilemanager.c
@@ -272,3 +272,11 @@ gimp_tile_manager_get_gegl_buffer (TileManager *tm,
 
   return buffer;
 }
+
+GeglBuffer *
+gimp_drawable_get_gegl_buffer (GimpDrawable *drawable,
+                               gboolean      write)
+{
+  return gimp_tile_manager_get_gegl_buffer (gimp_drawable_get_tiles (drawable), write);
+}
+
diff --git a/app/gegl/gimptilebackendtilemanager.h b/app/gegl/gimptilebackendtilemanager.h
index dacb940..a3302ec 100644
--- a/app/gegl/gimptilebackendtilemanager.h
+++ b/app/gegl/gimptilebackendtilemanager.h
@@ -52,8 +52,10 @@ GType             gimp_tile_backend_tile_manager_get_type (void) G_GNUC_CONST;
 GeglTileBackend * gimp_tile_backend_tile_manager_new (TileManager *tm,
                                                       gboolean     write);
 
-GeglBuffer      * gimp_tile_manager_get_gegl_buffer  (TileManager *tm,
-                                                      gboolean     write);
+GeglBuffer      * gimp_tile_manager_get_gegl_buffer  (TileManager  *tm,
+                                                      gboolean      write);
+GeglBuffer      * gimp_drawable_get_gegl_buffer      (GimpDrawable *drawable,
+                                                      gboolean      write);
 
 G_END_DECLS
 



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