[gimp/gimp-2-10] libgimp: in GimpTileBackendPlugin, change default tile multiplier to 1
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] libgimp: in GimpTileBackendPlugin, change default tile multiplier to 1
- Date: Tue, 15 Jan 2019 07:49:14 +0000 (UTC)
commit 2247fce313f29a6e38c964cdfb7cb9e03aedb241
Author: Ell <ell_se yahoo com>
Date: Tue Jan 15 02:33:48 2019 -0500
libgimp: in GimpTileBackendPlugin, change default tile multiplier to 1
In GimpTileBackendPlugin, change the default tile multiplier,
specifying the ratio between the backend tile-size, and GIMP's
tile-size, from 2 to 1. Since we're reading/writing each GIMP tile
using a separate command anyway, using a large multiplier doesn't
provide any benefits, while it does have drawbacks. In particular,
it reduces the chance that a write operation will affect an entire
tile, which allows us to avoid reading the tile data from GIMP.
(cherry picked from commit a5e2945b684b0edb0c39bf89467a258c7e5bf25d)
libgimp/gimptilebackendplugin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgimp/gimptilebackendplugin.c b/libgimp/gimptilebackendplugin.c
index 9116693aaa..fc754ea6c6 100644
--- a/libgimp/gimptilebackendplugin.c
+++ b/libgimp/gimptilebackendplugin.c
@@ -43,7 +43,7 @@ struct _GimpTileBackendPluginPrivate
static gint
gimp_gegl_tile_mul (void)
{
- static gint mul = 2;
+ static gint mul = 1;
static gboolean inited = FALSE;
if (G_LIKELY (inited))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]