diff options
author | Marin Shalamanov <shalamanov@google.com> | 2021-02-12 19:06:11 +0100 |
---|---|---|
committer | Marin Shalamanov <shalamanov@google.com> | 2021-02-23 10:57:27 +0100 |
commit | ae9cd8f4072c7ea403042a30d5439fb9d71e47a4 (patch) | |
tree | c0a26674de9e81fe04d865119bd0b6a96dd4f482 /rs/java/android/renderscript/ProgramStore.java | |
parent | 463ad8ee22fecc4e0f53757c618c5e77239f6467 (diff) |
Invalidate desiredDisplayModeSpecs when SF specs are invalid
When a display change occurs we change if the SF display specs
are different than the current. However if the SF base mode is
no longer supported we don't invalidate. This CL fixes that and
adds a test for the broken scenario.
In order to test this scenario we introduce SurfaceControlProxy,
which we mock in the unit test. This is needed because the
code under test is accessing SurfaceControl from multiple threads
and we mock static method only works for the test thread.
Bug: 179926030
Test: atest LocalDisplayAdapterTest
Change-Id: I69d4dbb1e4ae59a6a38f35d2497a85cece9f4875
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions