[gimp] libgimp: in GimpTileBackendPlugin, change default tile multiplier to 1



commit a5e2945b684b0edb0c39bf89467a258c7e5bf25d
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.

 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]