1. 06 Apr, 2019 2 commits
  2. 04 Apr, 2019 4 commits
  3. 01 Apr, 2019 3 commits
  4. 31 Mar, 2019 7 commits
  5. 30 Mar, 2019 6 commits
  6. 29 Mar, 2019 1 commit
  7. 28 Mar, 2019 6 commits
    • Ell's avatar
      app: avoid risky alloca() in gimp_brush_save() · 24ed9dbd
      Ell authored
      Replace an arbitrarily-sized g_alloca() with g_malloc() in
      gimp_brush_save().
      24ed9dbd
    • Ell's avatar
      app: avoid freezing image preview if drawable is not attached · de36e333
      Ell authored
      When freezing/thawing a top-level drawable's preview, only freeze/
      thaw the image preview if the drawable is attached.
      de36e333
    • Ell's avatar
      app: when freezing a drawable's preview, freeze ancestors' previews · e2ea2e4a
      Ell authored
      Add GimpViewable::preview_{freeze,thaw}() virtual functions, which
      get called when the viewable's preview is frozen/thawed.  Implement
      the functions in GimpDrawable, recursively freezing the parent
      drawable's preview (or the image's preview, for top-level
      drawables) while the drawable's preview is frozen.  For layer
      masks, freeze the associated layer's parent.
      
      This avoids updating layer-group/image previews while painting on,
      or applying a filter to, a descendant layer.  This both reduces
      lag, and fixes a discrepancy between the layer's preview, which
      isn't updated, and its parents' previews.
      e2ea2e4a
    • Jehan's avatar
      app: change antialias feature in fill by line art into Feather Edges. · d821b088
      Jehan authored
      This was actually more of a feathering feature I added earlier, and we
      already have a function for that: gimp_gegl_apply_feather(). This is
      using a gaussian blur, just as what I was doing anyway. This commit also
      adds the "Feather Radius" scale, similar to other tools with the
      "Feather Edges". So that makes it consistent (and more useful as you can
      adapt to your needs).
      d821b088
    • Ell's avatar
      app: include system gimp.css file in theme.css · 1846764d
      Ell authored
      Include the system-wide gimp.css file, in addition to the user-
      specific gimp.css file, in the generated theme.css file, instead of
      copying the former into the latter when creating the user's
      gimpdir.  This allows us to modify the system-wide gimp.css file,
      and having the changes take effect in existing installations.
      1846764d
    • Ell's avatar
      app: revert combo-box drop-down changes · 846d242f
      Ell authored
      Revert the use of gtk_combo_box_set_wrap_width() to change the
      combo-box drop-down style, except for the status-bar unit combo.
      See #2828 (comment 421312) for
      the rationale.
      
      This reverts commits 1d984542,
      68a33ab5, and
      6dfca83c.
      846d242f
  8. 27 Mar, 2019 10 commits
    • Ell's avatar
      app: use gimp:fill-source in gimp_drawable_edit_fill() · 234f76b6
      Ell authored
      In gimp_drawable_edit_fill(), when performing a non-direct fill,
      use a GimpDrawableFilter with gimp:fill-source, added in the
      previous commit, instead of using gimp_drawable_apply_buffer() with
      an intermediate fill buffer.  This avoids allocating a full-size
      fill buffer, which may occupy a lot of space in pattern fills.
      234f76b6
    • Ell's avatar
      app: add gimp:fill-source operation · 6b0337e3
      Ell authored
      Add a new gimp:fill-source operation, which can act as a source
      node for fill operations, instead of a fill buffer.  The op takes
      a GimpFillOptions object, a drawable, and a pattern offset, and
      uses gimp_fill_options_create_buffer() to produce its output.
      
      This allows performing the entire fill operation in chunks as a
      graph, instead of allocating a full-size fill buffer, which can
      can occupy a lot of space for pattern fills.
      6b0337e3
    • Ell's avatar
      app: improve gimp_drawable_fill_buffer() for patterns · 3c1634ee
      Ell authored
      In gimp_drawable_fill_buffer(), when the fill-source is a pattern,
      avoid going through an intermediate buffer when there's no profile
      transform, and use the destination-buffer format for the
      intermediate buffer, instead of the pattern format, when there is a
      profile transform.
      3c1634ee
    • Ell's avatar
      app: use compositing format for fill buffer · 245a17c7
      Ell authored
      Add gimp_fill_options_get_format(), which returns the format to be
      used for the fill buffer; this is the same format used during
      compositing.  Use this format in gimp_fill_options_create_buffer(),
      instead of the drawable format.
      
      This fixes the result of fill operations when the fill color/
      pattern is not representable in the drawable format, and speeds up
      color fills by avoiding color-conversion for the fill buffer during
      processing.
      245a17c7
    • Ell's avatar
      app: in GimpDrawableFilter, set underlying operation · b0dfc1e7
      Ell authored
      In GimpDrawableFilter, use
      gimp_gegl_node_set_underlying_operation() to the the input
      operation node as the underlying operation of the filter node.
      b0dfc1e7
    • Ell's avatar
      app: use underlying operation in gimp_gegl_apply_cached_operation() · 213b126c
      Ell authored
      In gimp_gegl_apply_cached_operation(), use the underlying
      operation, as returned from
      gimp_gegl_node_get_underlying_operation(), for testing whether the
      operation is a point operation, for the purpose of avoiding
      duplicating the input buffer.  Likewise, avoid duplicating the
      buffer when the underlying operation is a source operation.
      213b126c
    • Ell's avatar
      app: add gimp_gegl_node_{set,get}_underlying_oepration() · eb5e4736
      Ell authored
      ... which allow setting/getting the "underlying operation" node of
      a graph node.  For example, GimpDrawableFilter constructs a complex
      graph around a given operation node, which would be the underlying
      operation of the graph.  This allows querying the properties of the
      underlying operation, given only the graph.
      
      In recursive cases, gimp_gegl_node_get_underlying_operation()
      returns the most-nested underlying operation; when no underlying
      operation has been set, gimp_gegl_node_get_underlying_operation()
      returns the input node.
      eb5e4736
    • Ell's avatar
      app: add gimp_gegl_node_is_source_operation() · ff13e55c
      Ell authored
      ... which determines if a node is a source operation.
      ff13e55c
    • Ell's avatar
      app: in gimp_drawable_apply_buffer(), work in chunks · 8f845d3a
      Ell authored
      In gimp_drawable_real_apply_buffer(), use GimpChunkIterator to blit
      the applicator's output to the drawable's buffer in chunks, to
      minimize the space used for intermediate results.
      8f845d3a
    • Ell's avatar
      app: improve responsiveness of GimpChunkIterator · e904b712
      Ell authored
      In GimpChunkIterator, redajust the target area at each step,
      instead of at each iteration, to adapt more quickly to the current
      processing speed.  To avoid creating uneven chunks as a result,
      only change the chunk height at the beginning of rows, unless the
      resulting area would be more than twice as big as the target area.
      e904b712
  9. 26 Mar, 2019 1 commit
    • Ell's avatar
      app: preserve projection priority rect across structure/bounds changes · 9d80ccc3
      Ell authored
      In GimpProjection, store the priority rect in image coordinates,
      and only convert it to projectable coordinates when initializing
      the chunk-iterator's priority rect.  This allows us to preserve the
      priority rect across projectable structure/bounds changes.
      9d80ccc3