[gimp/goat-invasion: 2/73] add a util call to get the geglbuffer for a drawable
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 2/73] add a util call to get the geglbuffer for a drawable
- Date: Fri, 16 Mar 2012 12:57:48 +0000 (UTC)
commit ed9ae3621edd390ffbd300f9b9ec778eec127c3b
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]