From 68fb9b8b67ab2dc195d1550717af34942ec656e1 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 17 May 2019 18:49:42 +0300 Subject: [PATCH] Remove benchmarks. --- Telegram/SourceFiles/lottie/lottie_animation.cpp | 4 ---- Telegram/SourceFiles/lottie/lottie_frame_renderer.cpp | 6 ------ 2 files changed, 10 deletions(-) diff --git a/Telegram/SourceFiles/lottie/lottie_animation.cpp b/Telegram/SourceFiles/lottie/lottie_animation.cpp index c90b935ea8..f7de59c213 100644 --- a/Telegram/SourceFiles/lottie/lottie_animation.cpp +++ b/Telegram/SourceFiles/lottie/lottie_animation.cpp @@ -88,7 +88,6 @@ Animation::Animation(QByteArray &&content) : _timer([=] { checkNextFrame(); }) { const auto weak = base::make_weak(this); crl::async([=, content = base::take(content)]() mutable { - const auto now = crl::now(); content = UnpackGzip(content); if (content.size() > kMaxSize) { qWarning() @@ -100,7 +99,6 @@ Animation::Animation(QByteArray &&content) return; } const auto document = JsonDocument(std::move(content)); - const auto parsed = crl::now(); if (const auto error = document.error()) { qWarning() << "Lottie Error: Parse failed with code: " @@ -114,8 +112,6 @@ Animation::Animation(QByteArray &&content) parseDone(std::move(result)); }); } - const auto finish = crl::now(); - LOG(("INIT: %1 (PARSE %2)").arg(finish - now).arg(parsed - now)); }); } diff --git a/Telegram/SourceFiles/lottie/lottie_frame_renderer.cpp b/Telegram/SourceFiles/lottie/lottie_frame_renderer.cpp index 5a35c66f9b..ccf34b0b7a 100644 --- a/Telegram/SourceFiles/lottie/lottie_frame_renderer.cpp +++ b/Telegram/SourceFiles/lottie/lottie_frame_renderer.cpp @@ -193,7 +193,6 @@ void SharedState::renderFrame( if (!GoodStorageForFrame(image, size)) { image = CreateFrameStorage(size); } - const auto now = crl::now(); image.fill(Qt::transparent); QPainter p(&image); @@ -213,13 +212,8 @@ void SharedState::renderFrame( _scene.endFrame() - 1); _scene.updateProperties(frame); - const auto updated = crl::now(); - RasterRenderer renderer(&p); _scene.render(renderer, frame); - - const auto finished = crl::now(); - LOG(("RENDERED: %1 (UPDATE %2)").arg(finished - now).arg(updated - now)); } void SharedState::init(QImage cover) {