Add ProfileZone to encodeSubBufferToPNG
Signed-off-by: Tor Lillqvist <tml@collabora.com> Change-Id: I7363ea929ba703ce34a5c2411687f120ac5ba59eprivate/mmeeks/imgdecode-stack
parent
0ae8eaaad0
commit
64675d2926
|
@ -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 \
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue