commit | f0c5ccab2a66b2b5829daf659ae82de00aa56525 | [log] [tgz] |
---|---|---|
author | Xiang Wang <xwxw@google.com> | Wed Nov 09 18:03:09 2022 -0800 |
committer | Xiang Wang <xwxw@google.com> | Fri Nov 11 15:53:27 2022 -0800 |
tree | abe6ad17ef92fa67f2dad6be44c238eb592d517f | |
parent | be0905edb778bbeeed7e264129ea4acdddbe4f20 [diff] [blame] |
Add CUSTOM mode to native stats Bug: b/240335717 Test: atest TimeStatsTest Change-Id: I1f88b7182bee78b5bc56be4d59a0e9b85771d834
diff --git a/services/surfaceflinger/TimeStats/TimeStats.cpp b/services/surfaceflinger/TimeStats/TimeStats.cpp index e5a9dd4..e860d88 100644 --- a/services/surfaceflinger/TimeStats/TimeStats.cpp +++ b/services/surfaceflinger/TimeStats/TimeStats.cpp
@@ -68,6 +68,8 @@ return SurfaceflingerStatsLayerInfo::GAME_MODE_PERFORMANCE; case GameMode::Battery: return SurfaceflingerStatsLayerInfo::GAME_MODE_BATTERY; + case GameMode::Custom: + return SurfaceflingerStatsLayerInfo::GAME_MODE_CUSTOM; default: return SurfaceflingerStatsLayerInfo::GAME_MODE_UNSPECIFIED; }