2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Cache background quickly if no buttons pressed.

This commit is contained in:
John Preston
2021-08-13 19:31:55 +03:00
parent 2667bb3568
commit 2b46f87d7b
2 changed files with 13 additions and 4 deletions

View File

@@ -463,6 +463,7 @@ private:
CachedBackground _cachedBackground;
QRect _willCacheForArea;
crl::time _lastAreaChangeTime = 0;
base::Timer _cacheBackgroundTimer;
rpl::lifetime _lifetime;