[gimp/gimp-2-10] app: in gimp-gegl-nodes, set underlying operation
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: in gimp-gegl-nodes, set underlying operation
- Date: Tue, 30 Apr 2019 18:32:48 +0000 (UTC)
commit 3e2738e944ce2a122dd328a59559288c6fe265e6
Author: Ell <ell_se yahoo com>
Date: Tue Apr 30 14:27:19 2019 -0400
app: in gimp-gegl-nodes, set underlying operation
In the vairous gimp_gegl_create_foo_node() functions, set the
parent node's underlying operation node, so that
gimp_gegl_apply_cached_operation() avoids duplicating the source
buffer when applying these nodes (all underlying operations are
currently point ops.)
(cherry picked from commit 928e5957e3e3b4fb6cd4c98991978b328986c46f)
app/gegl/gimp-gegl-nodes.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/app/gegl/gimp-gegl-nodes.c b/app/gegl/gimp-gegl-nodes.c
index b12f3a1ca5..66fbc9f169 100644
--- a/app/gegl/gimp-gegl-nodes.c
+++ b/app/gegl/gimp-gegl-nodes.c
@@ -63,6 +63,8 @@ gimp_gegl_create_flatten_node (const GimpRGB *background,
NULL);
g_object_unref (c);
+ gimp_gegl_node_set_underlying_operation (node, color);
+
mode = gegl_node_new_child (node,
"operation", "gimp:normal",
NULL);
@@ -106,6 +108,8 @@ gimp_gegl_create_apply_opacity_node (GeglBuffer *mask,
"value", opacity,
NULL);
+ gimp_gegl_node_set_underlying_operation (node, opacity_node);
+
mask_source = gimp_gegl_add_buffer_source (node, mask,
mask_offset_x,
mask_offset_y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]