https://bugs.kde.org/show_bug.cgi?id=443306

Dmitry Kazakov <dimul...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
                   |hics/krita/commit/ad830678e |hics/krita/commit/9bd53486d
                   |da51391b070c4f44c9c816a1411 |0d41becd923ca04d5163b9b0cee
                   |e451                        |ef3b

--- Comment #3 from Dmitry Kazakov <dimul...@gmail.com> ---
Git commit 9bd53486d0d41becd923ca04d5163b9b0ceeef3b by Dmitry Kazakov.
Committed on 05/10/2021 at 14:35.
Pushed by dkazakov into branch 'krita/5.0'.

Fix threading issues when initializing brush caches in the background

Now the cache intialization is done in the following order:

1) Make a clone of the preset with all the dependent resource
   (so that we could pass it to a non-gui thread)

2) In a non-gui thread regenerate all the caches for this **cloned**
   preset and store them in KoResourceCacheStorage.

3) Check if the original preset hasn't changed since we have cloned it

4) If the original preset is still valid, upload the generated
   cache into it via setResourceCacheInterface()

M  +1    -7    libs/brush/kis_auto_brush.cpp
M  +1    -2    libs/brush/kis_auto_brush.h
M  +10   -6    libs/brush/kis_brush.cpp
M  +2    -4    libs/brush/kis_brush.h
M  +4    -20   libs/brush/kis_imagepipe_brush.cpp
M  +1    -2    libs/brush/kis_imagepipe_brush.h
M  +15   -46   libs/image/brushengine/kis_paintop_preset.cpp
M  +20   -14   libs/image/brushengine/kis_paintop_preset.h
M  +32   -5    libs/image/brushengine/kis_paintop_settings.cpp
M  +7    -4    libs/image/brushengine/kis_paintop_settings.h
M  +3    -0    libs/resources/CMakeLists.txt
A  +21   -0    libs/resources/KoResourceCacheInterface.cpp     [License:
GPL(v2.0+)]
A  +31   -0    libs/resources/KoResourceCacheInterface.h     [License:
GPL(v2.0+)]
A  +25   -0    libs/resources/KoResourceCachePrefixedStorageWrapper.cpp    
[License: GPL(v2.0+)]
A  +26   -0    libs/resources/KoResourceCachePrefixedStorageWrapper.h    
[License: GPL(v2.0+)]
A  +38   -0    libs/resources/KoResourceCacheStorage.cpp     [License:
GPL(v2.0+)]
A  +27   -0    libs/resources/KoResourceCacheStorage.h     [License:
GPL(v2.0+)]
M  +67   -18   libs/ui/KisPresetShadowUpdater.cpp
M  +5    -0    libs/ui/KisPresetShadowUpdater.h
M  +30   -11   plugins/paintops/libpaintop/kis_brush_based_paintop_settings.cpp
M  +2    -2    plugins/paintops/libpaintop/kis_brush_based_paintop_settings.h

https://invent.kde.org/graphics/krita/commit/9bd53486d0d41becd923ca04d5163b9b0ceeef3b

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to