qt: optimize RoundImage generation
RoundImage are generated asynchronously, so if a view request again the same image before it generation ends and reach the cache, a new request is recreated and the image is re-generated. This patch optimize the image generation by exposing the request as a shared objects that will be shared amongst the different image that makes the same request.
Showing
- modules/gui/qt/Makefile.am 2 additions, 1 deletionmodules/gui/qt/Makefile.am
- modules/gui/qt/meson.build 1 addition, 0 deletionsmodules/gui/qt/meson.build
- modules/gui/qt/widgets/native/roundimage.cpp 175 additions, 106 deletionsmodules/gui/qt/widgets/native/roundimage.cpp
- modules/gui/qt/widgets/native/roundimage.hpp 4 additions, 5 deletionsmodules/gui/qt/widgets/native/roundimage.hpp
- modules/gui/qt/widgets/native/roundimage_p.hpp 161 additions, 0 deletionsmodules/gui/qt/widgets/native/roundimage_p.hpp
Loading
Please register or sign in to comment