commit | 8a5c41d38c9580cec6d87f1170e0b03973ac9254 | [log] [tgz] |
---|---|---|
author | Prabir Pradhan <prabirmsp@google.com> | Thu Jun 08 19:13:46 2023 +0000 |
committer | Prabir Pradhan <prabirmsp@google.com> | Tue Jun 20 19:43:39 2023 +0000 |
tree | ac336a82fb6ae222b5c694fd5868ce669219872f | |
parent | 6778bd40c51ffa583f0533d00d2c7230a630b20c [diff] [blame] |
Use a strongly typed Uid in WindowInfo Bug: 286428012 Test: presubmit Change-Id: I039e2892274b293eeea4a167d748234a4170541e
diff --git a/services/surfaceflinger/FrontEnd/LayerSnapshot.cpp b/services/surfaceflinger/FrontEnd/LayerSnapshot.cpp index a992584..f469a1f 100644 --- a/services/surfaceflinger/FrontEnd/LayerSnapshot.cpp +++ b/services/surfaceflinger/FrontEnd/LayerSnapshot.cpp
@@ -46,7 +46,7 @@ premultipliedAlpha = state.premultipliedAlpha; inputInfo.name = state.name; inputInfo.id = static_cast<int32_t>(uniqueSequence); - inputInfo.ownerUid = static_cast<int32_t>(state.ownerUid); + inputInfo.ownerUid = gui::Uid{state.ownerUid}; inputInfo.ownerPid = state.ownerPid; uid = state.ownerUid; pid = state.ownerPid;