[gegl/pippin/api_breakage: 1/2] add more arguments to gegl_node_blit_buffer
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/pippin/api_breakage: 1/2] add more arguments to gegl_node_blit_buffer
- Date: Tue, 1 Sep 2015 08:59:17 +0000 (UTC)
commit dd9590e2574a94bc057b1dbf5bedd83be477b1a0
Author: Oyvind Kolas <pippin gimp org>
Date: Wed Jul 29 22:01:09 2015 +0200
add more arguments to gegl_node_blit_buffer
gegl/graph/gegl-node.c | 25 ++++++++++---------------
gegl/graph/gegl-node.h | 5 ++++-
2 files changed, 14 insertions(+), 16 deletions(-)
---
diff --git a/gegl/graph/gegl-node.c b/gegl/graph/gegl-node.c
index 0740aa9..a7c2c94 100644
--- a/gegl/graph/gegl-node.c
+++ b/gegl/graph/gegl-node.c
@@ -963,12 +963,15 @@ gegl_node_apply_roi (GeglNode *self,
}
}
-static void
-gegl_node_blit_buffer2 (GeglNode *self,
- GeglBuffer *buffer,
- const GeglRectangle *roi,
- gint level) // XXX: add abyss policy
+void
+gegl_node_blit_buffer (GeglNode *self,
+ GeglBuffer *buffer,
+ const GeglRectangle *roi,
+ gint level,
+ GeglAbyssPolicy abyss_policy)
{
+ // XXX: make use of abyss_policy
+
GeglEvalManager *eval_manager;
GeglBuffer *result;
GeglRectangle request;
@@ -992,14 +995,6 @@ gegl_node_blit_buffer2 (GeglNode *self,
}
}
-void
-gegl_node_blit_buffer (GeglNode *self,
- GeglBuffer *buffer,
- const GeglRectangle *roi)
-{
- gegl_node_blit_buffer2 (self, buffer, roi, 0);
-}
-
static inline gboolean gegl_mipmap_rendering_enabled (void)
{
static int enabled = -1;
@@ -1056,12 +1051,12 @@ gegl_node_blit (GeglNode *self,
const GeglRectangle unscaled_roi = _gegl_get_required_for_scale (format, roi, scale);
gint level = gegl_mipmap_rendering_enabled()?gegl_level_from_scale (scale):0;
- gegl_node_blit_buffer2 (self, buffer, &unscaled_roi, level);
+ gegl_node_blit_buffer (self, buffer, &unscaled_roi, level, GEGL_ABYSS_NONE);
gegl_cache_computed (cache, &unscaled_roi, level);
}
else
{
- gegl_node_blit_buffer (self, buffer, roi);
+ gegl_node_blit_buffer (self, buffer, roi, 0, GEGL_ABYSS_NONE);
gegl_cache_computed (cache, roi, 0);
}
}
diff --git a/gegl/graph/gegl-node.h b/gegl/graph/gegl-node.h
index ccea88e..e0660f6 100644
--- a/gegl/graph/gegl-node.h
+++ b/gegl/graph/gegl-node.h
@@ -293,12 +293,15 @@ void gegl_node_blit (GeglNode *node,
* @node: a #GeglNode
* @buffer: (transfer none) (allow-none): the #GeglBuffer to render to.
* @roi: (allow-none): the rectangle to render.
+ * @level: mipmap level to render (0 for all)
*
* Render a rectangular region from a node to the given buffer.
*/
void gegl_node_blit_buffer (GeglNode *node,
GeglBuffer *buffer,
- const GeglRectangle *roi);
+ const GeglRectangle *roi,
+ int level,
+ GeglAbyssPolicy abyss_policy);
/**
* gegl_node_process:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]