Skip to content

Commit 068fa0c

Browse files
committed
Add flag for native session manager
Adds a flag for the upcoming "SessionManager" in PowerAdvisor, which holds the logic for the Timeline API and HAL communication. This flag guards the creation of SessionManager, and by extension all of the associated Timeline API logic. Bug: 367803904 Change-Id: I76200fa5bf4f3f519ec20a8172e45b7848ab124c Flag: com.android.graphics.surfaceflinger.flags.adpf_native_session_manager Test: presub
1 parent ae566f2 commit 068fa0c

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

services/surfaceflinger/common/FlagManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ void FlagManager::dump(std::string& result) const {
113113
/// Trunk stable server flags ///
114114
DUMP_SERVER_FLAG(refresh_rate_overlay_on_external_display);
115115
DUMP_SERVER_FLAG(adpf_gpu_sf);
116+
DUMP_SERVER_FLAG(adpf_native_session_manager);
116117
DUMP_SERVER_FLAG(adpf_use_fmq_channel);
117118

118119
/// Trunk stable readonly flags ///
@@ -274,6 +275,7 @@ FLAG_MANAGER_READ_ONLY_FLAG(begone_bright_hlg, "debug.sf.begone_bright_hlg");
274275
/// Trunk stable server flags ///
275276
FLAG_MANAGER_SERVER_FLAG(refresh_rate_overlay_on_external_display, "")
276277
FLAG_MANAGER_SERVER_FLAG(adpf_gpu_sf, "")
278+
FLAG_MANAGER_SERVER_FLAG(adpf_native_session_manager, "");
277279

278280
/// Trunk stable server flags from outside SurfaceFlinger ///
279281
FLAG_MANAGER_SERVER_FLAG_IMPORTED(adpf_use_fmq_channel, "", android::os)

services/surfaceflinger/common/include/common/FlagManager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class FlagManager {
5151
bool refresh_rate_overlay_on_external_display() const;
5252
bool adpf_gpu_sf() const;
5353
bool adpf_use_fmq_channel() const;
54+
bool adpf_native_session_manager() const;
5455
bool adpf_use_fmq_channel_fixed() const;
5556

5657
/// Trunk stable readonly flags ///

services/surfaceflinger/surfaceflinger_flags_new.aconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ flag {
1818
bug: "284324521"
1919
} # adpf_gpu_sf
2020

21+
flag {
22+
name: "adpf_native_session_manager"
23+
namespace: "game"
24+
description: "Controls ADPF SessionManager being enabled in SF"
25+
bug: "367803904"
26+
} # adpf_sessionmanager
27+
2128
flag {
2229
name: "arr_setframerate_api"
2330
namespace: "core_graphics"

0 commit comments

Comments
 (0)