vcl/source/bitmap/BitmapScaleSuperFilter.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit f877ded8654edc70e466e92de1f9c1dbe5d959de Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Thu Jun 24 12:23:48 2021 +0300 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Sat Jun 26 17:55:04 2021 +0200 Add ProfileZone to scaleDown() and scaleUp() in BitmapScaleSuperFilter Change-Id: Ibc98d1e5ba24f98c437468d3f9a469725892e7d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117768 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <t...@collabora.com> diff --git a/vcl/source/bitmap/BitmapScaleSuperFilter.cxx b/vcl/source/bitmap/BitmapScaleSuperFilter.cxx index e8cf70a98a16..ac5174b2923d 100644 --- a/vcl/source/bitmap/BitmapScaleSuperFilter.cxx +++ b/vcl/source/bitmap/BitmapScaleSuperFilter.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <comphelper/profilezone.hxx> #include <comphelper/threadpool.hxx> #include <tools/helpers.hxx> @@ -165,6 +166,7 @@ template <size_t nSize> struct ScaleFunc template <int nColorBits> void scaleDown (const ScaleContext &rCtx, tools::Long nStartY, tools::Long nEndY) { + comphelper::ProfileZone pz("BitmapScaleSuperFilter::scaleDown"); constexpr int nColorComponents = nColorBits / 8; static_assert(nColorComponents * 8 == nColorBits, "nColorBits must be divisible by 8"); using ScaleFunction = ScaleFunc<nColorComponents>; @@ -280,6 +282,7 @@ void scaleDown (const ScaleContext &rCtx, tools::Long nStartY, tools::Long nEndY template <int nColorBits> void scaleUp(const ScaleContext &rCtx, tools::Long nStartY, tools::Long nEndY) { + comphelper::ProfileZone pz("BitmapScaleSuperFilter::scaleUp"); constexpr int nColorComponents = nColorBits / 8; static_assert(nColorComponents * 8 == nColorBits, "nColorBits must be divisible by 8"); using ScaleFunction = ScaleFunc<nColorComponents>; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits