Merge "Plumb pid to Layer Metadata during Layer creation"
This commit is contained in:
committed by
Android (Google) Code Review
commit
6365c0e717
@@ -547,6 +547,12 @@ public final class SurfaceControl implements Parcelable {
|
|||||||
*/
|
*/
|
||||||
public static final int METADATA_ACCESSIBILITY_ID = 5;
|
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
|
* A wrapper around HardwareBuffer that contains extra information about how to
|
||||||
* interpret the screenshot HardwareBuffer.
|
* interpret the screenshot HardwareBuffer.
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
package com.android.server.wm;
|
package com.android.server.wm;
|
||||||
|
|
||||||
import static android.os.Trace.TRACE_TAG_WINDOW_MANAGER;
|
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_OWNER_UID;
|
||||||
import static android.view.SurfaceControl.METADATA_WINDOW_TYPE;
|
import static android.view.SurfaceControl.METADATA_WINDOW_TYPE;
|
||||||
|
|
||||||
@@ -105,6 +105,7 @@ class WindowSurfaceController {
|
|||||||
.setFlags(flags)
|
.setFlags(flags)
|
||||||
.setMetadata(METADATA_WINDOW_TYPE, windowType)
|
.setMetadata(METADATA_WINDOW_TYPE, windowType)
|
||||||
.setMetadata(METADATA_OWNER_UID, ownerUid)
|
.setMetadata(METADATA_OWNER_UID, ownerUid)
|
||||||
|
.setMetadata(METADATA_OWNER_PID, mWindowSession.mPid)
|
||||||
.setCallsite("WindowSurfaceController");
|
.setCallsite("WindowSurfaceController");
|
||||||
|
|
||||||
final boolean useBLAST = mService.mUseBLAST && ((win.getAttrs().privateFlags &
|
final boolean useBLAST = mService.mUseBLAST && ((win.getAttrs().privateFlags &
|
||||||
|
|||||||
Reference in New Issue
Block a user