[gimp/goat-invasion: 2/325] app: add a util call to get the geglbuffer for a drawable



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

    app: 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]