summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Alan Ding <alanding@google.com> 2024-05-17 16:55:51 -0700
committer Alan Ding <alanding@google.com> 2024-05-21 23:22:15 +0000
commit78c90af2224b43467d854e356492527db0f8eb70 (patch)
tree794fa348855756012d9194185d00f5d7ceaa2191 /services/surfaceflinger/RegionSamplingThread.cpp
parent5ad607e99c11e3f31fe12cef8c8e42e78bb2fd48 (diff)
ui: Refactor stable ID generation for GPU virtual displays
This is a partial port of http://ag/17832464 for main. Use ftl::stable_hash to generate stable ID from uniqueId for GPU virtual displays. This allows FLAG_STABLE consistent with PhysicalDisplayId that uses a unique EDID, as well as being stable across reboots when using hardcoded or static unique ID. Add DisplayId.isStable()/isVirtual() interfaces and refactor previous legacy usages. Bug: 339525838 Bug: 137375833 Bug: 194863377 Test: atest libsurfaceflinger_unittest Test: atest DisplayId_test Flag: EXEMPT refactor Change-Id: I54f4d3803c8c23266a3461660146af7ae017e4be
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions