Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 068fa0c1 authored by Matt Buckley's avatar Matt Buckley
Browse files

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
parent ae566f21
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -113,6 +113,7 @@ void FlagManager::dump(std::string& result) const {
    /// Trunk stable server flags ///
    DUMP_SERVER_FLAG(refresh_rate_overlay_on_external_display);
    DUMP_SERVER_FLAG(adpf_gpu_sf);
    DUMP_SERVER_FLAG(adpf_native_session_manager);
    DUMP_SERVER_FLAG(adpf_use_fmq_channel);

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

/// Trunk stable server flags from outside SurfaceFlinger ///
FLAG_MANAGER_SERVER_FLAG_IMPORTED(adpf_use_fmq_channel, "", android::os)
+1 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ public:
    bool refresh_rate_overlay_on_external_display() const;
    bool adpf_gpu_sf() const;
    bool adpf_use_fmq_channel() const;
    bool adpf_native_session_manager() const;
    bool adpf_use_fmq_channel_fixed() const;

    /// Trunk stable readonly flags ///
+7 −0
Original line number Diff line number Diff line
@@ -18,6 +18,13 @@ flag {
  bug: "284324521"
} # adpf_gpu_sf

flag {
  name: "adpf_native_session_manager"
  namespace: "game"
  description: "Controls ADPF SessionManager being enabled in SF"
  bug: "367803904"
} # adpf_sessionmanager

flag {
  name: "arr_setframerate_api"
  namespace: "core_graphics"