2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Trivial in-memory frame caching.

This commit is contained in:
John Preston
2019-06-26 19:14:46 +02:00
parent 56e137b20f
commit a026aec786
9 changed files with 360 additions and 73 deletions

View File

@@ -1099,7 +1099,7 @@ std::unique_ptr<Lottie::Animation> LottieFromDocument(
Storage::Cache::Key{ key->high, key->low + int(sizeTag) },
data,
filepath,
box);
Lottie::FrameRequest{ box });
}
return Lottie::FromContent(data, filepath);
}