Skip to content

Commit

Permalink
Use refactored Images transformations.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jan 21, 2022
1 parent 17fbf3d commit f20776c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lottie/details/lottie_frame_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "lottie/lottie_player.h"
#include "lottie/lottie_animation.h"
#include "lottie/details/lottie_frame_provider.h"
#include "ui/image/image_prepare.h"
#include "base/flat_map.h"
#include "base/assertion.h"

Expand All @@ -17,10 +18,6 @@
#include <range/v3/algorithm/find.hpp>
#include <range/v3/algorithm/count_if.hpp>

namespace Images {
QImage prepareColored(QColor add, QImage image);
} // namespace Images

namespace Lottie {
namespace {

Expand Down Expand Up @@ -99,7 +96,7 @@ class FrameRendererObject final {
storage = std::move(storage).mirrored(true, false);
}
if (request.colored.has_value()) {
storage = Images::prepareColored(*request.colored, std::move(storage));
storage = Images::Colored(std::move(storage), *request.colored);
}
return storage;
}
Expand Down

0 comments on commit f20776c

Please sign in to comment.