Gimp/app/tests
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
..
files app: modified and moved gegl operation testing to operations/tests 2012-06-14 21:30:00 +03:00
gimpdir app: fix test sessionrc files to expect the new "Color History" palette 2014-12-07 22:31:00 +01:00
gimpdir-empty app/tests: Distribute test files and test directories 2010-01-08 13:37:25 +01:00
.gitignore tests: build the test icon theme for all platforms. 2014-08-15 21:21:41 +00:00
gimp-app-test-utils.c *: rename NORMAL to NORMAL_LEGACY and NORMAL_LINEAR to NORMAL 2017-02-26 16:26:34 +01:00
gimp-app-test-utils.h app: fixed typos in testing code 2012-06-05 22:03:26 +03:00
gimp-test-session-utils.c Bug 692641 - Various spelling fixes 2013-01-27 18:59:02 +01:00
gimp-test-session-utils.h app/tests: Add single-window mode session files test 2011-06-14 23:34:12 +02:00
Makefile.am app: layer mode code shuffling 2017-08-17 11:19:37 -04:00
manual-testcases.txt Bug 565459 - newly opened images are put into the background 2010-06-23 20:17:44 +02:00
test-core.c *: rename NORMAL to NORMAL_LEGACY and NORMAL_LINEAR to NORMAL 2017-02-26 16:26:34 +01:00
test-gimpidtable.c use better prefix for previous patch 2016-07-31 20:53:11 +02:00
test-save-and-export.c app: move some stuff out of app/file/ 2016-01-03 23:38:08 +01:00
test-session-2-6-compatibility.c Bug 709878 - test-session-* skipped when xvfb-run is unavailable. 2013-10-11 21:57:42 +13:00
test-session-2-8-compatibility-multi-window.c Bug 709878 - test-session-* skipped when xvfb-run is unavailable. 2013-10-11 21:57:42 +13:00
test-session-2-8-compatibility-single-window.c Bug 709878 - test-session-* skipped when xvfb-run is unavailable. 2013-10-11 21:57:42 +13:00
test-single-window-mode.c app/tests: The single-window-mode setting is in the sessionrc now 2012-01-10 19:47:52 +01:00
test-tools.c app, plug-ins, libgimp*: clean out all remaining trailing spaces/tabs. 2016-06-02 02:04:26 +02:00
test-ui.c *: rename NORMAL to NORMAL_LEGACY and NORMAL_LINEAR to NORMAL 2017-02-26 16:26:34 +01:00
test-xcf.c *: rename NORMAL to NORMAL_LEGACY and NORMAL_LINEAR to NORMAL 2017-02-26 16:26:34 +01:00