summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Melody Hsu <melodymhsu@google.com> 2024-06-04 17:22:04 +0000
committer Melody Hsu <melodymhsu@google.com> 2024-06-04 17:25:58 +0000
commit683fe045ffbfd5de81ceb3385b73ad0d687f83a3 (patch)
tree9ddcde5ab36c9ca5e5e93514eedc527704858244 /services/surfaceflinger/RegionSamplingThread.cpp
parent893b2baee4c24bf277e373348c4d289a28e8ce71 (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
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions