Add ProfileZone to encodeSubBufferToPNG

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I7363ea929ba703ce34a5c2411687f120ac5ba59e
private/mmeeks/imgdecode-stack
Tor Lillqvist 2021-06-22 15:40:48 +03:00 committed by Tor Lillqvist
parent 0ae8eaaad0
commit 64675d2926
2 changed files with 4 additions and 0 deletions

View File

@ -165,6 +165,7 @@ lokitclient_SOURCES = common/Log.cpp \
tools/KitClient.cpp \
common/Protocol.cpp \
common/StringVector.cpp \
common/TraceEvent.cpp \
common/Util.cpp
loolforkit_sources = kit/ChildSession.cpp \

View File

@ -59,6 +59,7 @@
#include "Log.hpp"
#include "SpookyV2.h"
#include "TraceEvent.hpp"
namespace Png
{
@ -203,6 +204,8 @@ inline bool encodeSubBufferToPNG(unsigned char* pixmap, size_t startX, size_t st
int height, int bufferWidth, int bufferHeight,
std::vector<char>& output, LibreOfficeKitTileMode mode)
{
ProfileZone pz("encodeSubBufferToPNG");
const auto start = std::chrono::steady_clock::now();
const bool res = impl_encodeSubBufferToPNG(pixmap, startX, startY, width, height, bufferWidth,