gimp/app
Ell 71bbd88e00 app: layer mode code shuffling
Commit 3635cf04ab moved the special
handling of bottom-layer compositing to GimpOperationLayerMode.
This required giving the op more control over the process()
function of its subclasses.  As a temporary workaround, the commit
bypassed the subclasses entirely, using "gimp:layer-mode" for all
modes.  This is the reckoning :)

Add a process() virtual function to GimpOperationLayerMode, which
its subclasses should override instead of
GeglOperationPointComposer3's process() functions.  Reinstate the
subclasses (by returning the correct op in
gimp_layer_mode_get_oepration()), and have them override this
function.

Improve the way gimp_operation_layer_mode_process() dispatches to
the actual process function, to slightly lower its overhead and
fix some thread-safety issues.

Remove the "function" field of the layer-mode info array, and have
gimp_layer_mode_get_function() return the
GimpOperationLayerMode::process() function of the corresponding
op's class (caching the result, to keep it cheap.)  This reduces
redundancy, allows us to make the ops' process() functions private,
and simplifies SSE dispatching (only used by NORMAL mode,
currently.)

Move the blend and composite functions of the non-specialized
layer modes to gimpoperationlayermode-{blend,composite}.[hc],
respectively, to improve code organization.

Move the SSE2 composite functions to a separate file, so that they
can be built as part of libapplayermodes_sse2, allowing
libapplayermodes to be built without SSE2 compiler flags.  This
allows building GIMP with SSE acceleration enabled, while running
the resulting binary on a target with no SSE accelration.

Add a "blend_function" field to the layer-mode info array, and use
it to specify the blend function for the non-specialized modes.
This replaces the separate switch() statement that we used
previously.

Remove the "affected_region" field of the layer-mode info array.
We don't need it anymore, since we can go back to using
GimpOperationLayerMode's virtual get_affected_region() function.

Last but not least, a bunch of code cleanups and consistency
adjustments.
2017-08-17 11:19:37 -04:00
..
actions app, menus: add gegl:spiral to the menus 2017-07-28 17:48:03 -04:00
config app: layer mode code shuffling 2017-08-17 11:19:37 -04:00
core app: adapt gimp_image_merge_layers() to handle pass-through groups ... 2017-08-08 15:39:28 -04:00
dialogs app: use a lot of g_clear_object() and g_clear_pointer() 2017-07-15 18:42:44 +02:00
display app: use {begin,end}_render() and GimpTileHandlerProjectable ... 2017-08-08 15:39:27 -04:00
file app, libgimp: allow to register more than one MIME type per procedure 2017-05-04 23:22:37 +02:00
gegl Bug 785890 - libappgegl doesn't use SSE2 compiler flags ... 2017-08-06 14:13:01 -04:00
gui app: move new "about.h" include to its place, add some newlines 2017-06-07 20:53:48 +02:00
menus Bug 750180 - Fix different ways of writing Plug-in Plug-In Plugin. 2017-03-21 17:52:22 +01:00
operations app: layer mode code shuffling 2017-08-17 11:19:37 -04:00
paint app: layer mode code shuffling 2017-08-17 11:19:37 -04:00
pdb Bug 785535 - Histogram not updating in real when filters are active 2017-08-05 17:15:31 +02:00
plug-in app: minor s/placeolder/placeholder/ 2017-07-28 22:57:09 +02:00
propgui app: swap base and balance slider order in spiral 2017-07-30 07:40:44 -04:00
tests app: layer mode code shuffling 2017-08-17 11:19:37 -04:00
text app: use a lot of g_clear_object() and g_clear_pointer() 2017-07-15 18:42:44 +02:00
tools app: remove useless double space. 2017-08-15 21:12:17 +02:00
vectors app: use a lot of g_clear_object() and g_clear_pointer() 2017-07-15 18:42:44 +02:00
widgets Bug 785535 - Histogram not updating in real when filters are active 2017-08-05 17:15:31 +02:00
xcf app: don't propagate NULL error when saving XCFs 2017-07-28 16:51:08 -04:00
.gitignore
Makefile.am app: layer mode code shuffling 2017-08-17 11:19:37 -04:00
about.h Bug 762282 - Link ends with "/." 2016-02-26 17:17:44 +01:00
app.c app: split sanity check into early/late stages, to fix gegl translation 2017-06-15 09:51:25 -04:00
app.h app: add a "Playground" perfs page and a --show-playground command line option 2014-09-14 01:08:25 +02:00
errors.c Bug 774971 - Display errors outputted by GEGL. 2017-06-07 15:51:33 +02:00
errors.h
gimp-debug.c
gimp-debug.h
gimp-intl.h
gimp-log.c app: turned an XCF debug patch I had into proper GIMP_LOG=xcf output 2014-07-09 22:36:55 +02:00
gimp-log.h app: turn magic matching debug output into GIMP_LOG() 2017-07-28 22:35:13 +02:00
gimp-priorities.h app: add gimp-priorities.h and keep the most important priorities there 2014-07-02 04:47:24 +02:00
gimpcore.def app: Add gimp_channel_flood() function 2016-01-25 22:58:28 +01:00
language.c app: language.c contains no translatable strings, remove "gimp-intl.h" 2016-10-21 18:44:39 +02:00
language.h
main.c app: split sanity check into early/late stages, to fix gegl translation 2017-06-15 09:51:25 -04:00
sanity.c bump required GEGL version to 0.3.20 2017-08-15 23:11:12 +02:00
sanity.h app: split sanity check into early/late stages, to fix gegl translation 2017-06-15 09:51:25 -04:00
signals.c app,libgimp*: fix includes to follow our include policy 2013-10-15 01:58:39 +02:00
signals.h
tests.c app: merge units.[ch] into core/gimp-units.[ch] 2016-09-12 23:51:29 +02:00
tests.h app: forgot a s/const gchar*/GFile*/ in tests.[ch] 2014-08-29 21:36:31 +02:00
unique.c app: indentation fix. 2015-09-29 00:32:24 +02:00
unique.h app: clean out tab indentations. 2016-12-21 04:05:32 +01:00
version.c
version.h