Commit f9f3f96
committed
SF: Allow multiple invalid stack layers through to CE
Currently, all duplicate stack layers are denied passage to the
CompositionEngine. This makes sense when dealing with per-display
on-screen content, but breaks apart if for mirrored and off-screen
content.
Allow multiple invalid (-1) stack layers through, as this state is used
to represent stack layers that can be updated safely by multiple sources
or are associated with one source.
Fixes: 397775142
Test: atest SurfaceFlinger_test, atest MultiDisplayTest
Flag: com.android.graphics.surfaceflinger.flags.reject_dupe_layerstacks
Change-Id: Ic103471a8cc997eb30e7f14d08559e351b01b8011 parent ca3bbac commit f9f3f96
1 file changed
Lines changed: 14 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2856 | 2856 | | |
2857 | 2857 | | |
2858 | 2858 | | |
2859 | | - | |
2860 | | - | |
2861 | | - | |
2862 | | - | |
2863 | | - | |
2864 | | - | |
2865 | | - | |
2866 | | - | |
2867 | | - | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
2868 | 2869 | | |
| 2870 | + | |
2869 | 2871 | | |
2870 | | - | |
| 2872 | + | |
2871 | 2873 | | |
2872 | 2874 | | |
2873 | 2875 | | |
| |||
2876 | 2878 | | |
2877 | 2879 | | |
2878 | 2880 | | |
2879 | | - | |
| 2881 | + | |
2880 | 2882 | | |
2881 | 2883 | | |
2882 | 2884 | | |
| |||
2895 | 2897 | | |
2896 | 2898 | | |
2897 | 2899 | | |
2898 | | - | |
| 2900 | + | |
2899 | 2901 | | |
2900 | 2902 | | |
2901 | 2903 | | |
| |||
0 commit comments