Commit Graph

58 Commits

Author SHA1 Message Date
Andrea Cavalli
377050ced3 Merge remote-tracking branch 'td/master' 2022-06-29 23:33:12 +02:00
levlam
32bac7bd24 Move Promise to tdutils. 2022-06-27 13:30:18 +03:00
Andrea Cavalli
d84305048e Merge remote-tracking branch 'td/master' 2022-04-22 15:35:30 +02:00
levlam
05c0833525 Add PhotoFormat.h. 2022-04-09 23:21:07 +03:00
Andrea Cavalli
e047add8a2 Update tdlib 2022-03-15 11:36:21 +01:00
levlam
1f38124861 Use FlatHashSet. 2022-03-11 21:38:48 +03:00
levlam
15f27455c5 Move other big classes inside FlatHashMap to unique_ptr. 2022-02-11 19:27:32 +03:00
levlam
bcc2adeb47 Fix includes and formatting. 2022-02-08 00:04:34 +03:00
Arseny Smirnov
86bceb2972 td: replace most of std::unordered_map usages to td::FlatHashMap 2022-02-07 21:21:31 +01:00
Andrea Cavalli
09b98f6b30 Merge remote-tracking branch 'td/master' 2022-01-04 00:04:21 +01:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
Andrea Cavalli
48e3660d2c Merge remote-tracking branch 'td/master' 2021-11-14 22:46:37 +01:00
levlam
b731414d42 Init some fields just in case. 2021-11-11 17:39:09 +03:00
Andrea Cavalli
98244d1346 Merge remote-tracking branch 'td/master' 2021-10-20 02:21:14 +02:00
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
Andrea Cavalli
45e855f89d Remove most memory related features
I can't maintain anymore this amount of features while keeping the library constantly updated and without bugs. Every merge was taking me multiple hours of revisioning the code. I give up.
From this commit onwards TDLight will only have small useful customizations that are easy to maintain.
Now the people relying on the OptimizeMemory method can restart the session every N hours to free up the memory.
The real way to keep a low memory usage must involve a huge refactoring to allow the unloading of the caches into the sqlite database, similar to what's already happening with messages data. Only Levlam has the ability to implement this without needing to merge the upstream everytime.
2021-09-25 22:11:42 +02:00
Andrea Cavalli
897d4af16c Merge remote-tracking branch 'td/master' 2021-09-25 19:24:57 +02:00
levlam
66170213fc Add store/parse_background. 2021-09-24 16:03:01 +03:00
Andrea Cavalli
37b1d48470 Fix compilation warnings and errors 2021-09-10 15:47:26 +02:00
Andrea Cavalli
a20e8b6db3 Merge remote-tracking branch 'td/master' 2021-09-04 16:03:33 +02:00
levlam
7dffe5aabe Use Promise instead of RequestActor in getBackgrounds. 2021-09-03 09:07:18 +03:00
levlam
3e77161e46 Don't replace main background type if appropriate. 2021-08-27 12:10:51 +03:00
levlam
bba085318e Return BackgroundType from on_get_background. 2021-08-24 17:13:51 +03:00
Andrea Cavalli
3dde04b17f Merge remote-tracking branch 'td/master' 2021-07-17 11:15:40 +02:00
levlam
40c5d47717 Make inherited classes final if possible. 2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98 Use final instead of override. 2021-07-03 23:51:36 +03:00
Andrea Cavalli
c41ec7df43 Merge remote-tracking branch 'td/master' 2021-06-30 13:31:50 +02:00
levlam
138535ccf8 Store multiple local backgrounds. 2021-06-10 18:58:19 +03:00
levlam
64df3b4b3c Remove unneeded add_local_background method and allow non-default installed backgrounds without file. 2021-06-10 04:55:58 +03:00
levlam
75fc042e09 Replace add_fill_background with add_local_background. 2021-06-10 04:44:39 +03:00
levlam
aba5b1ab7c Use autoincremented IDs for local backgrounds. 2021-06-10 03:57:58 +03:00
levlam
5188a5b5e7 Allow to set non-local filled backgrounds. 2021-06-09 19:08:47 +03:00
levlam
3e0e9f5291 Parse background parameters in searchBackground. 2021-05-26 20:25:37 +03:00
Andrea Cavalli
a79f835de0 Add memory_cleanup on tear_down, and add more memory_cleanup. 2021-01-12 01:37:17 +01:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
b48c465b0d Replace GradientInfo with BackgroundFill internally.
GitOrigin-RevId: 62f72414e933e77e79c2d99828988122758956d2
2019-12-22 21:01:51 +03:00
levlam
e1f1253e21 Better Gradientinfo implementation.
GitOrigin-RevId: cc7a3c0a94cd2816c2090981f78ddcedd2128d1f
2019-12-22 04:02:39 +03:00
levlam
04eb931c72 Update layer 107.
GitOrigin-RevId: d8ab8b2016d368f6e4f03c6cf1440232ab66e7f2
2019-12-22 02:56:51 +03:00
levlam
88c5679b13 Add backgroundTypeGradient.
GitOrigin-RevId: db09e39cb4384cd85f53cbc8719b2b2b75206406
2019-12-21 05:28:07 +03:00
levlam
6dd2a822ad Cache backgorund by their names.
GitOrigin-RevId: 2e5c5ed30185f53240ab806f866bd4c83ee5da51
2019-07-19 05:34:49 +03:00
levlam
c6d7daa460 Improve add_background.
GitOrigin-RevId: cac29a57fb9d76489a0d5a6da83d75c7af075862
2019-07-19 03:50:51 +03:00
levlam
3928917f77 Add Background store and parse.
GitOrigin-RevId: 7c6e34fc2af991ce090356c09f65df37b742775c
2019-07-18 22:12:46 +03:00
levlam
c874b1d4b1 Add support for separate background for dark theme.
GitOrigin-RevId: e5315453db1a7388f240dbefd4eeac6d8c9929c8
2019-06-18 01:39:57 +03:00
levlam
acc17b8d9d Minor fixes.
GitOrigin-RevId: 3861e74381386cff82d688a445de3e8f72494974
2019-05-14 17:26:13 +03:00
levlam
abc59be319 Add td_api::resetBackgrounds.
GitOrigin-RevId: 9ed830d56b31f0c26ba83245f0c53fb2f20fe8da
2019-05-12 04:10:18 +03:00
levlam
f8ccec8a44 Add BackgroundManager::on_installed_background.
GitOrigin-RevId: 41c6ea74772817416342896c83b90a37a2e4f087
2019-05-11 23:27:17 +03:00
levlam
a156f3dee6 Add td_api::removeBackground.
GitOrigin-RevId: f4a2e293f003207a7f224de7fc8dd3de04a9f942
2019-05-10 23:55:26 +03:00
levlam
db2ac0ed98 Support td_api::updateSelectedBackground in getCurrentState.
GitOrigin-RevId: 06352042ba464af8fc66101e53f51e905dadbd3b
2019-05-10 19:04:14 +03:00
levlam
57e0b917b8 Add updateSelectedBackground.
GitOrigin-RevId: 78ca327ff6da27da19fc6a05e2354af969b42bfb
2019-05-10 18:55:55 +03:00