Gimp/app/operations/layer-modes
Ell 3635cf04ab app: move bottom-layer special casing to GimpOperationLayerMode
GimpFilter's is_last_node field only reflects the item's position
within the parent stack.  When a layer is contained in a pass-
through group, it can be the last layer of the group, while not
being the last layer in the graph as a whole (paticularly, if
there are visible layers below the group).  In fact, when we have
nested pass-through groups, whether or not a layer is the last
node depends on which group we're considering as the root (since
we exclude the backdrop from the group's projection, resulting in
different graphs for different groups).

Instead of rolling our own graph traversal, just move the relevant
logic to GimpOperationLayerMode, and let GEGL do the work for us.
At processing time, we can tell if we're the last node by checking
if we have any input.

For this to work, GimpOperationLayerMode's process() function needs
to have control over what's going on.  Replace the derived op
classes, which override process(), with a call to the layer mode's
function (as per gimp_layer_mode_get_function()) in
GimpOperationLayerMode's process() function.  (Well, actually, this
commit keeps the ops around, and just hacks around them in
gimp_layer_mode_get_operation(), because laziness :P)

Keep using the layer's is_last_node property to do the invalidation.
2017-08-08 15:39:28 -04:00
..
.gitignore
gimp-layer-modes.c app: move bottom-layer special casing to GimpOperationLayerMode 2017-08-08 15:39:28 -04:00
gimp-layer-modes.h app: move bottom-layer special casing to GimpOperationLayerMode 2017-08-08 15:39:28 -04:00
gimpoperationantierase.c app: rename GimpLayerModeAffectMask to GimpLayerCompositeRegion 2017-05-11 17:44:55 -04:00
gimpoperationantierase.h app: rename GimpOperationPointLayerMode to GimpOperationLayerMode 2017-01-21 21:35:52 +01:00
gimpoperationbehind.c app: implement the different composite modes for behind mode 2017-02-17 18:19:32 -05:00
gimpoperationbehind.h app: rename GimpOperationPointLayerMode to GimpOperationLayerMode 2017-01-21 21:35:52 +01:00
gimpoperationdissolve.c app: rename GimpLayerModeAffectMask to GimpLayerCompositeRegion 2017-05-11 17:44:55 -04:00
gimpoperationdissolve.h app: rename GimpOperationPointLayerMode to GimpOperationLayerMode 2017-01-21 21:35:52 +01:00
gimpoperationerase.c app: avoid some GCC warnings due to unhandled switch cases 2017-02-17 18:19:32 -05:00
gimpoperationerase.h app: rename GimpOperationPointLayerMode to GimpOperationLayerMode 2017-01-21 21:35:52 +01:00
gimpoperationlayermode.c app: move bottom-layer special casing to GimpOperationLayerMode 2017-08-08 15:39:28 -04:00
gimpoperationlayermode.h app: move bottom-layer special casing to GimpOperationLayerMode 2017-08-08 15:39:28 -04:00
gimpoperationmerge.c app: add merge layer mode 2017-03-10 18:56:32 -05:00
gimpoperationmerge.h app: add merge layer mode 2017-03-10 18:56:32 -05:00
gimpoperationnormal-sse2.c app, plug-ins: clean out trailing whitespaces in source code. 2017-06-17 04:47:53 +02:00
gimpoperationnormal-sse4.c app: implement the different composite modes for normal mode 2017-02-17 18:19:32 -05:00
gimpoperationnormal.c app: implement the different composite modes for normal mode 2017-02-17 18:19:32 -05:00
gimpoperationnormal.h app: merge the GimpLayerModeFunc into gimp-layer-modes.c's array 2017-02-15 02:25:44 +01:00
gimpoperationreplace.c app: rename GimpLayerModeAffectMask to GimpLayerCompositeRegion 2017-05-11 17:44:55 -04:00
gimpoperationreplace.h app: rename GimpOperationPointLayerMode to GimpOperationLayerMode 2017-01-21 21:35:52 +01:00
gimpoperationsplit.c app: add split layer mode 2017-03-10 18:56:32 -05:00
gimpoperationsplit.h app: add split layer mode 2017-03-10 18:56:32 -05:00
Makefile.am app: add split layer mode 2017-03-10 18:56:32 -05:00