2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

QtLottie: Move everything to Lottie namespace.

This commit is contained in:
John Preston
2019-05-15 19:54:08 +03:00
parent ab82ff0fb7
commit 26c29f6af7
4 changed files with 9 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <QFile>
#include "logs.h"
#include "rasterrenderer/lottierasterrenderer.h"
#include "rasterrenderer/rasterrenderer.h"
namespace Lottie {
@@ -43,7 +43,7 @@ std::unique_ptr<Animation> FromFile(const QString &path) {
}
std::unique_ptr<Animation> FromData(const QByteArray &data) {
return std::make_unique<Lottie::Animation>(data);
return std::make_unique<Animation>(data);
}
Animation::Animation(const QByteArray &content)

View File

@@ -8,7 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "lottie/lottie_frame_renderer.h"
#include "lottie/lottie_animation.h"
#include "rasterrenderer/lottierasterrenderer.h"
#include "rasterrenderer/rasterrenderer.h"
#include "logs.h"
#include <range/v3/algorithm/find.hpp>
@@ -215,7 +215,7 @@ void SharedState::renderFrame(
const auto updated = crl::now();
LottieRasterRenderer renderer(&p);
RasterRenderer renderer(&p);
_scene.render(renderer, frame);
const auto finished = crl::now();

View File

@@ -77,7 +77,7 @@
'<(lottie_loc)/bodymovin/bmfreeformshape.cpp',
'<(lottie_loc)/bodymovin/bmtrimpath.cpp',
'<(lottie_loc)/bodymovin/bmpathtrimmer.cpp',
'<(lottie_loc)/bodymovin/lottierenderer.cpp',
'<(lottie_loc)/bodymovin/renderer.cpp',
'<(lottie_loc)/bodymovin/trimpath.cpp',
'<(lottie_loc)/bodymovin/bmfilleffect.cpp',
'<(lottie_loc)/bodymovin/bmrepeater.cpp',
@@ -87,7 +87,6 @@
'<(lottie_loc)/bodymovin/beziereasing.h',
'<(lottie_loc)/bodymovin/bmbase.h',
'<(lottie_loc)/bodymovin/bmbasictransform.h',
'<(lottie_loc)/bodymovin/bmconstants.h',
'<(lottie_loc)/bodymovin/bmellipse.h',
'<(lottie_loc)/bodymovin/bmfill.h',
'<(lottie_loc)/bodymovin/bmfilleffect.h',
@@ -107,13 +106,13 @@
'<(lottie_loc)/bodymovin/bmstroke.h',
'<(lottie_loc)/bodymovin/bmtrimpath.h',
'<(lottie_loc)/bodymovin/trimpath.h',
'<(lottie_loc)/bodymovin/lottierenderer.h',
'<(lottie_loc)/bodymovin/renderer.h',
'<(lottie_loc)/bodymovin/bmpathtrimmer.h',
# taken from qtlottie/src/imports/imports.pro
'<(lottie_loc)/imports/rasterrenderer/lottierasterrenderer.cpp',
'<(lottie_loc)/imports/rasterrenderer/rasterrenderer.cpp',
'<(lottie_loc)/imports/rasterrenderer/lottierasterrenderer.h',
'<(lottie_loc)/imports/rasterrenderer/rasterrenderer.h',
# added to qtlottie/src/bodymovin/bodymovin.pro
'<(lottie_loc)/bodymovin/bmasset.cpp',