diff options
| author | 2018-10-31 13:07:19 -0700 | |
|---|---|---|
| committer | 2018-11-13 14:56:28 -0800 | |
| commit | 341577629776c771ad2b4d9e0e452c34ed66ff0b (patch) | |
| tree | 9620490253b448ab85bff9ca8cbd2b08c3aa59d7 /libs/gui/BufferQueueThreadState.cpp | |
| parent | f77adb1fbcefafb09d1eb4bf050be2ad23ae781a (diff) | |
SF: Define DisplayId as struct type
This prevents accidental mix-up with HWC display IDs, which have the
same backing type, as well as other implicitly convertible integers,
e.g. EDID manufacturer IDs. This CL also fixes misuses detected by
type checking:
1) Recycling of virtual display IDs.
2) Skipping composition for non-HWC virtual displays.
3) Unit tests for fallback/virtual display IDs.
Bug: 74619554
Bug: 119412688
Test: libsurfaceflinger_unittest
Test: vrflinger_test on walleye_xr
Change-Id: I0be41cc93c82860e859f1adf427430436c926595
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions