commit | 683fe045ffbfd5de81ceb3385b73ad0d687f83a3 | [log] [tgz] |
---|---|---|
author | Melody Hsu <melodymhsu@google.com> | Tue Jun 04 17:22:04 2024 +0000 |
committer | Melody Hsu <melodymhsu@google.com> | Tue Jun 04 17:25:58 2024 +0000 |
tree | 9ddcde5ab36c9ca5e5e93514eedc527704858244 | |
parent | 893b2baee4c24bf277e373348c4d289a28e8ce71 [diff] |
Pass state instead of unsafe display on binder Accessing display from pickBestDataspace may be unsafe without mStateLock. The display was originally used to get the OutputCompositionState, which can instead be passed in directly. There is no need to check for a null display in this method anymore because the caller of this function already has the correct default value. Bug: b/294936197 Test: presubmit Change-Id: I10ce68a75f91d14fb18f457ac4eebb2ed54fe09a