Merge "Plumb pid to Layer Metadata during Layer creation" am: 6365c0e717
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12913037 Change-Id: I31eda65677f901a984dd5d503554c9bc8a68af74
This commit is contained in:
@@ -547,6 +547,12 @@ public final class SurfaceControl implements Parcelable {
|
||||
*/
|
||||
public static final int METADATA_ACCESSIBILITY_ID = 5;
|
||||
|
||||
/**
|
||||
* owner PID.
|
||||
* @hide
|
||||
*/
|
||||
public static final int METADATA_OWNER_PID = 6;
|
||||
|
||||
/**
|
||||
* A wrapper around HardwareBuffer that contains extra information about how to
|
||||
* interpret the screenshot HardwareBuffer.
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package com.android.server.wm;
|
||||
|
||||
import static android.os.Trace.TRACE_TAG_WINDOW_MANAGER;
|
||||
import static android.view.Surface.SCALING_MODE_SCALE_TO_WINDOW;
|
||||
import static android.view.SurfaceControl.METADATA_OWNER_PID;
|
||||
import static android.view.SurfaceControl.METADATA_OWNER_UID;
|
||||
import static android.view.SurfaceControl.METADATA_WINDOW_TYPE;
|
||||
|
||||
@@ -105,6 +105,7 @@ class WindowSurfaceController {
|
||||
.setFlags(flags)
|
||||
.setMetadata(METADATA_WINDOW_TYPE, windowType)
|
||||
.setMetadata(METADATA_OWNER_UID, ownerUid)
|
||||
.setMetadata(METADATA_OWNER_PID, mWindowSession.mPid)
|
||||
.setCallsite("WindowSurfaceController");
|
||||
|
||||
final boolean useBLAST = mService.mUseBLAST && ((win.getAttrs().privateFlags &
|
||||
|
||||
Reference in New Issue
Block a user