Commit 7e4e561
Romain Guy
Ignore draw requests when the display is off
When WindowManagerService's events are enabled/disabled, the state of the
display is dispatched to the known windows. This allows ViewRootImpl to
ignore draw requests until the screen is turned back on. This can potentially
lead to significant battery savings. For instance, a launcher widget showing
a repeating animation will cause the CPU and the GPU to wake up regularly
without this change.
(Change submitted by Intel and merged manually)
Change-Id: I7f93b0e60c3e6de1705f619e80860c36b1cdb9781 parent fb9c41c commit 7e4e561
File tree
5 files changed
+58
-2
lines changed- core/java
- android/view
- com/android/internal/view
- services/java/com/android/server/wm
5 files changed
+58
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14845 | 14845 | | |
14846 | 14846 | | |
14847 | 14847 | | |
| 14848 | + | |
| 14849 | + | |
14848 | 14850 | | |
14849 | 14851 | | |
14850 | 14852 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
393 | 397 | | |
394 | 398 | | |
395 | 399 | | |
| |||
757 | 761 | | |
758 | 762 | | |
759 | 763 | | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
760 | 774 | | |
761 | 775 | | |
762 | 776 | | |
| |||
1886 | 1900 | | |
1887 | 1901 | | |
1888 | 1902 | | |
| 1903 | + | |
| 1904 | + | |
1889 | 1905 | | |
1890 | 1906 | | |
1891 | 1907 | | |
| |||
2018 | 2034 | | |
2019 | 2035 | | |
2020 | 2036 | | |
2021 | | - | |
2022 | | - | |
| 2037 | + | |
2023 | 2038 | | |
2024 | 2039 | | |
2025 | 2040 | | |
| |||
2485 | 2500 | | |
2486 | 2501 | | |
2487 | 2502 | | |
| 2503 | + | |
2488 | 2504 | | |
2489 | 2505 | | |
2490 | 2506 | | |
| |||
2741 | 2757 | | |
2742 | 2758 | | |
2743 | 2759 | | |
| 2760 | + | |
| 2761 | + | |
| 2762 | + | |
| 2763 | + | |
| 2764 | + | |
2744 | 2765 | | |
2745 | 2766 | | |
2746 | 2767 | | |
| |||
4025 | 4046 | | |
4026 | 4047 | | |
4027 | 4048 | | |
| 4049 | + | |
| 4050 | + | |
| 4051 | + | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
4028 | 4055 | | |
4029 | 4056 | | |
4030 | 4057 | | |
| |||
4226 | 4253 | | |
4227 | 4254 | | |
4228 | 4255 | | |
| 4256 | + | |
| 4257 | + | |
| 4258 | + | |
| 4259 | + | |
| 4260 | + | |
| 4261 | + | |
| 4262 | + | |
4229 | 4263 | | |
4230 | 4264 | | |
4231 | 4265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6347 | 6347 | | |
6348 | 6348 | | |
6349 | 6349 | | |
| 6350 | + | |
| 6351 | + | |
6350 | 6352 | | |
6351 | 6353 | | |
6352 | 6354 | | |
| |||
6570 | 6572 | | |
6571 | 6573 | | |
6572 | 6574 | | |
| 6575 | + | |
| 6576 | + | |
| 6577 | + | |
| 6578 | + | |
| 6579 | + | |
| 6580 | + | |
| 6581 | + | |
| 6582 | + | |
| 6583 | + | |
| 6584 | + | |
| 6585 | + | |
| 6586 | + | |
| 6587 | + | |
| 6588 | + | |
6573 | 6589 | | |
6574 | 6590 | | |
6575 | 6591 | | |
| |||
0 commit comments