Gimp/app
Jehan 926d5c6daa app, libgimp*, plug-ins: fix previous commit and add gimp_cairo_surface_get_buffer().
The previous commit was not taking into account usages of
gimp_cairo_surface_create_buffer(), other than the text layer rendering
usage, as it was focused on fixing #14970.

In particular, in other pieces of code, we were using a temporary
GeglBuffer as a way to edit the original Cairo surface but the syncing
back was not happening anymore. So previous commit was breaking all
thumbnails of layers or images, as well as PDF export for all raster
layers.

After some thought, I decided to implement a new function
gimp_cairo_surface_get_buffer() which would do what
gimp_cairo_surface_create_buffer() was doing, but adding a boolean flag
to declare whether or not we were expecting to sync back into the Cairo
surface's data. After all, when we don't need to sync back, better avoid
the useless work of copying possibly huge data.

I also added back the possibility of returning a linear-memory backed
buffer, after some discussion with pippin. Because for very small
surfaces, and if we are indeed looking to sync back into the source
Cairo surface, the advantages of using a linear buffer may still be
worth it, even though it's not true for the general case (where tiled
buffers will be much more efficient). I used 4096 (64^2 because our
current tile dimensions are 64 right now in GIMP), though this number is
kinda random and doesn't matter too much (it doesn't have to be the
square of the tile's width or height). I don't put any info about this
in the new function's documentation because developers should not have
any expectations on the type of buffer they get (only whether or not it
will sync back to the source).

As a consequence of all this, gimp_cairo_surface_create_buffer() has
been deprecated as of GIMP 3.2, though it will still work the same. The
new function will be recommended as a replacement.
2025-11-08 20:34:55 +01:00
..
actions Issue #15206: do not initialize transform tools when swapping tools… 2025-11-08 11:26:04 +01:00
config Declare gexiv2 dependency on many targets (due to gimpmetadata.h) 2025-10-03 18:31:53 -03:00
core core, widgets: ensure to add colors of GimpFillEditor in color history once 2025-11-08 18:50:33 +01:00
dialogs dialogs: "Maximum Image Size" changed to "Maximum new image size" 2025-11-08 08:56:48 -03:00
display Revert "core, display: Enable resize for GUI layer copying" 2025-11-07 22:50:45 +00:00
file Declare gexiv2 dependency on many targets (due to gimpmetadata.h) 2025-10-03 18:31:53 -03:00
file-data Issue #15152: Export to bzip2, gzip, xz gives warnings. 2025-10-28 12:34:58 +01:00
gegl Declare gexiv2 dependency on many targets (due to gimpmetadata.h) 2025-10-03 18:31:53 -03:00
gui gui, widgets: Connect ViewableDialog to style updates 2025-11-03 11:37:35 +00:00
menus Declare gexiv2 dependency on many targets (due to gimpmetadata.h) 2025-10-03 18:31:53 -03:00
operations Declare gexiv2 dependency on many targets (due to gimpmetadata.h) 2025-10-03 18:31:53 -03:00
paint paint: Issue #9774 eval core_brush symmetry before paintbrush params 2025-11-05 02:51:00 +00:00
path app, pdb: do not push undos on rasterizables when loading a XCF. 2025-10-23 01:16:58 +02:00
pdb app, pdb: fix gimp_drawable_get_sub_thumbnail() on high-bit depth drawable. 2025-10-30 01:16:25 +00:00
plug-in app: store meta extensions in pluginrc. 2025-10-29 23:25:36 +01:00
propgui Declare gexiv2 dependency on many targets (due to gimpmetadata.h) 2025-10-03 18:31:53 -03:00
tests Issue #15206: do not initialize transform tools when swapping tools… 2025-11-08 11:26:04 +01:00
text app, libgimp*, plug-ins: fix previous commit and add gimp_cairo_surface_get_buffer(). 2025-11-08 20:34:55 +01:00
tools Issue #15206: do not initialize transform tools when swapping tools… 2025-11-08 11:26:04 +01:00
widgets app, libgimp*, plug-ins: fix previous commit and add gimp_cairo_surface_get_buffer(). 2025-11-08 20:34:55 +01:00
xcf Issue #15121: link layer positioning problem. 2025-11-08 12:37:45 +01:00
about.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
app.c app: allow gimp command-line to run in console mode 2025-10-14 23:20:12 +00:00
app.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
errors.c app, modules: Resolve unused Windows variable warnings 2025-10-12 14:06:04 +00:00
errors.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimp-debug.c
gimp-debug.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimp-intl.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimp-log.c
gimp-log.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimp-priorities.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimp-update.c Issue #13553: pop an error dialog up only for specific GIO error. 2025-09-29 20:31:40 +02:00
gimp-update.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimp-version.c
gimp-version.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimpconsoleapp.c
gimpconsoleapp.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimpcore.def path, tools, pdb: UX updates to vector layers 2025-08-17 02:20:19 +00:00
gimpcoreapp.c
gimpcoreapp.h app: remove useless heading newline. 2025-10-13 15:37:11 +02:00
git-version.h.in app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
language.c app, libgimp*, pdb, themes: Fix description typos 2025-09-24 16:50:15 +00:00
language.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
main.c app, libgimp: Fix truncation and lack of color on attached Windows console 2025-11-08 12:02:56 -03:00
meson.build app: rename app/vectors/ to app/path/ 2025-07-07 15:44:15 +02:00
sanity.c meson, app: depend on GEGL-0.4.64 2025-10-03 23:56:36 +02:00
sanity.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
signals.c app: Make possible to append _NT_SYMBOL_PATH 2025-09-09 12:57:46 -03:00
signals.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
unique.c
unique.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00