1. 09 Oct, 2017 10 commits
    • Halla Rempt's avatar
      Bump version · 6681c08c
      Halla Rempt authored
      6681c08c
    • Halla Rempt's avatar
      065e3088
    • Bernhard Liebl's avatar
      Prevent a crash when swap file is not created on OSX · 6cacb109
      Bernhard Liebl authored
      Prevents a random crash with Krita 3.2.1 on Mac OS X 10.12.6 (not reproducible).
      
      The swapfile does not get created properly on OS X and thus mmap fails
      later on, as there's no file to mmap to.
      
      The reason the swapfile does not get created is that OS X stores each
      temp file in its own garbled
      path (e.g.
      
      /var/folders/6k/9953vs0513ldszxq8gqjz4mh0000gq/T/KRITA_SWAP_FILE_XXXXXX).
      
      Thus the usual logic implemented in Krita for getting "one"
      permanent (i.e. saved in config file) correct tmp path and then creating
      a swap file there, is not viable on OS X with OS X's tmp file folder
      management.
      
      On OS X, you can get a temp path for a temp file, but when you create
      the swap file there later on, the path might already be invalid (this is
      also sort of a QT QTemporaryFile problem IMHO, but anyway).
      
      This diff fixes swapfiles on OS X through these changes:
      
        * Clear all existing configs on OS X that point swapfiles to
          /var/folders (the internal OS X tmp file archive that must not be
          stored in a config file, as it is definitely not usually writable or
          readable across app starts) and make Krita revert to the "default"
          on such installations Use the home directory on OS X as default
          swapfile dir, as there is no dedicated tmp file location that allows
          for setting the swap file name (users can always specify a better
          swapfile location, but the home dir at least makes it clear where to
          delete the thing should Krita crash, as opposed to some unnamed
          large file deep down somewhere in /var/folders/.../.../...).
      
        * Additionally, this latest diff adds proper error checking on
          swapfile resizes and swapfile mmap, which should be beneficial for
          all platforms. Currently if any of these fail, Krita will
          crash. With these changes, swapping out will just noop
          gracefully (and print out a warning).
      
      Reviewers: #krita, dkazakov
      
      Reviewed By: #krita, dkazakov
      
      Subscribers: dkazakov, alvinhochun
      
      Differential Revision: https://phabricator.kde.org/D7969
      6cacb109
    • Nikita Smirnov's avatar
      Add license info · 98697aea
      Nikita Smirnov authored
      98697aea
    • Nikita Smirnov's avatar
      Merge down should not remove locked layers · 556dd7e9
      Nikita Smirnov authored
      Reviewers: #krita, dkazakov
      
      Subscribers: rempt
      
      Differential Revision: https://phabricator.kde.org/D7394
      556dd7e9
    • Bernhard Liebl's avatar
      fix timer being swamped · f0adb212
      Bernhard Liebl authored
      f0adb212
    • Bernhard Liebl's avatar
      avoid temporary vector allocation · 69d12bbd
      Bernhard Liebl authored
      69d12bbd
    • Bernhard Liebl's avatar
    • Bernhard Liebl's avatar
      better drop indicator for layer panel · 8566d65f
      Bernhard Liebl authored
      8566d65f
    • Bernhard Liebl's avatar
      nicer brush tool tips · 798ad293
      Bernhard Liebl authored
      798ad293
  2. 07 Oct, 2017 2 commits
  3. 03 Oct, 2017 2 commits
  4. 01 Oct, 2017 2 commits
  5. 30 Sep, 2017 4 commits
  6. 29 Sep, 2017 4 commits
  7. 28 Sep, 2017 14 commits
  8. 26 Sep, 2017 1 commit
  9. 25 Sep, 2017 1 commit
    • Bernhard Liebl's avatar
      Cache std::random_device · 932e9f64
      Bernhard Liebl authored
      Summary: Creating or opening a std::random_device incurs an overhead one can see in profiling (about 7% on OS X; on Linux and OS X, this causes a call to open()).
      
      Reviewers: #krita, dkazakov
      
      Reviewed By: #krita, dkazakov
      
      Subscribers: dkazakov
      
      Differential Revision: https://phabricator.kde.org/D7895
      932e9f64