commit | dbbae482baf12f4edc9fe00493a30d99ec57c9a4 | [log] [tgz] |
---|---|---|
author | Sally Qi <sallyqi@google.com> | Tue May 23 13:14:41 2023 -0700 |
committer | Sally Qi <sallyqi@google.com> | Thu May 25 09:34:27 2023 -0700 |
tree | 2b3ba849357fcfe34439487dcb8bda03a45b909e | |
parent | c6eeba236f039cf2956d243681d6acf5cc53554f [diff] |
Fix the issue of using SilkFx crash on non-HDR-supported phone. - ideally on non-HDR-supported phone, `Display#isHdrSdrRatioAvailable` should be false, while it's not the case in such phone now. The reason is hdrSdrRatio always gets updated. We should reject such update if there is no SdrHdrRatioMap loaded. Bug: 280804824 Test: play with SilkFX; LocalDisplayAdapterTest Change-Id: If162fc15cae033d056f22d02625ad955006dd65a