diff options
author | 2021-05-21 22:50:56 +0000 | |
---|---|---|
committer | 2021-06-02 17:38:39 +0000 | |
commit | ac977e6de0cdebddebc2db0efd8cbec94c2bc996 (patch) | |
tree | 3a89d4d71ada965e0d7f758d0d7e4179412e7785 /aidl/gui | |
parent | f1804968780f975fa8fe361c480a15e8dd85d131 (diff) |
SF - plumbing game mode for metrics (Part 1)
This change adds a game mode in the Layer metadata that gets updated every
time a game app comes to the foreground. The gameMode is then set on the
Layer based on the metadata and reparenting.
The game mode will then be
updated in TimeStats as a dimension (Part 2, in a separate CL later).
Bug: 186025682
Test: libsurfaceflinger_unittest:GameModeTest
Change-Id: I09deffc01d1b318cc08d0475611289dec055c190
Diffstat (limited to 'aidl/gui')
-rw-r--r-- | aidl/gui/android/view/LayerMetadataKey.aidl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/aidl/gui/android/view/LayerMetadataKey.aidl b/aidl/gui/android/view/LayerMetadataKey.aidl index a1d8ce5962..d6ca3db5d7 100644 --- a/aidl/gui/android/view/LayerMetadataKey.aidl +++ b/aidl/gui/android/view/LayerMetadataKey.aidl @@ -26,4 +26,5 @@ enum LayerMetadataKey { METADATA_ACCESSIBILITY_ID = 5, METADATA_OWNER_PID = 6, METADATA_DEQUEUE_TIME = 7, + METADATA_GAME_MODE = 8, } |