diff options
| author | Adithya Srinivasan <adsrini@google.com> | 2021-05-21 22:18:37 +0000 |
|---|---|---|
| committer | Adithya Srinivasan <adsrini@google.com> | 2021-05-27 20:12:08 +0000 |
| commit | 4e8a1a05b1b9ed35357aa0555722bb24afd07dcb (patch) | |
| tree | af618a2edf6104e2b44e72e578ec080b42536d50 /core/java/android/view/SurfaceControl.java | |
| parent | 19c430b187696b1858a7f5d4a62573f6f31e3814 (diff) | |
Add TaskSurfaceHelper/Controller in WMShell to plumb game mode to SF
TaskSurfaceHelper(Controller) will be used as an interface to communicate
with the SurfaceControl of the underlying Task. This change adds a function
to set the game mode metadata for the task layer.
Bug: 186025682
Test: atest TaskSurfaceControllerTest
Change-Id: I136b65636b98e1883eaf9e4f4f0b34c61350d4e4
Diffstat (limited to 'core/java/android/view/SurfaceControl.java')
| -rw-r--r-- | core/java/android/view/SurfaceControl.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/view/SurfaceControl.java b/core/java/android/view/SurfaceControl.java index 45c49352afff..f34cd8f9de50 100644 --- a/core/java/android/view/SurfaceControl.java +++ b/core/java/android/view/SurfaceControl.java @@ -34,7 +34,6 @@ import android.annotation.Size; import android.annotation.TestApi; import android.compat.annotation.UnsupportedAppUsage; import android.graphics.Bitmap; -import android.graphics.BLASTBufferQueue; import android.graphics.ColorSpace; import android.graphics.GraphicBuffer; import android.graphics.Matrix; @@ -647,6 +646,12 @@ public final class SurfaceControl implements Parcelable { public static final int METADATA_OWNER_PID = 6; /** + * game mode for the layer - used for metrics + * @hide + */ + public static final int METADATA_GAME_MODE = 8; + + /** * A wrapper around HardwareBuffer that contains extra information about how to * interpret the screenshot HardwareBuffer. * |
