Commit da4a186
Add a batched scheduler delegate call for animated prop updates
Summary:
The animation backend hands its synchronous updates to the platform one view at a time. This adds `UIManager::synchronouslyUpdateAnimatedProps` and a matching `SchedulerDelegate` call that receive a whole frame's updates at once, continuing #56771. The backend uses it when `optimizedAnimatedPropUpdates` is on. The default delegate implementation forwards to the existing per-view update, so platforms that don't implement it are unaffected.
## Changelog:
[General] [Changed] - Add a batched scheduler delegate call for animated prop updates behind `optimizedAnimatedPropUpdates`
Differential Revision: D1225706171 parent fcaf99d commit da4a186
17 files changed
Lines changed: 108 additions & 0 deletions
File tree
- packages/react-native/ReactCommon/react/renderer
- animationbackend
- scheduler
- tests
- uimanager
- scripts/cxx-api/api-snapshots
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
225 | 231 | | |
226 | 232 | | |
227 | 233 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
381 | 388 | | |
382 | 389 | | |
383 | 390 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
69 | 77 | | |
70 | 78 | | |
71 | 79 | | |
| |||
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
588 | 589 | | |
589 | 590 | | |
590 | 591 | | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
591 | 624 | | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
772 | 779 | | |
773 | 780 | | |
774 | 781 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
74 | 82 | | |
75 | 83 | | |
76 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4618 | 4618 | | |
4619 | 4619 | | |
4620 | 4620 | | |
| 4621 | + | |
4621 | 4622 | | |
4622 | 4623 | | |
4623 | 4624 | | |
| |||
4641 | 4642 | | |
4642 | 4643 | | |
4643 | 4644 | | |
| 4645 | + | |
4644 | 4646 | | |
4645 | 4647 | | |
4646 | 4648 | | |
| |||
5372 | 5374 | | |
5373 | 5375 | | |
5374 | 5376 | | |
| 5377 | + | |
5375 | 5378 | | |
5376 | 5379 | | |
5377 | 5380 | | |
| |||
5439 | 5442 | | |
5440 | 5443 | | |
5441 | 5444 | | |
| 5445 | + | |
5442 | 5446 | | |
5443 | 5447 | | |
5444 | 5448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4434 | 4434 | | |
4435 | 4435 | | |
4436 | 4436 | | |
| 4437 | + | |
4437 | 4438 | | |
4438 | 4439 | | |
4439 | 4440 | | |
| |||
4457 | 4458 | | |
4458 | 4459 | | |
4459 | 4460 | | |
| 4461 | + | |
4460 | 4462 | | |
4461 | 4463 | | |
4462 | 4464 | | |
| |||
5182 | 5184 | | |
5183 | 5185 | | |
5184 | 5186 | | |
| 5187 | + | |
5185 | 5188 | | |
5186 | 5189 | | |
5187 | 5190 | | |
| |||
5249 | 5252 | | |
5250 | 5253 | | |
5251 | 5254 | | |
| 5255 | + | |
5252 | 5256 | | |
5253 | 5257 | | |
5254 | 5258 | | |
| |||
0 commit comments