diff options
author | 2023-11-02 10:03:23 -0400 | |
---|---|---|
committer | 2023-11-02 11:12:43 -0400 | |
commit | b315af5186bcc0f86055cf847a155b48573d996e (patch) | |
tree | 281df3cabaef37e2325ace358b37d3845e8b70ba | |
parent | d5a57a5d892cfb78cf9add6d18e70b26b53365d3 (diff) |
SF FlagManager: Add a method for checking multithreaded_present
Factored out of Ib9d074671e32c95875ef7e0791dd95d6e595e47a to avoid
more potential rebases. That CL will use the flag.
Bug: 241285491
Bug: 259132483
Test: adb shell dumpsys SurfaceFlinger | grep multithreaded_present
-- verify flag shows up default false.
Change-Id: Id3ba46cbc0c9487bf3b29e7b9d4de58e5ee8e459
-rw-r--r-- | services/surfaceflinger/FlagManager.cpp | 2 | ||||
-rw-r--r-- | services/surfaceflinger/FlagManager.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/services/surfaceflinger/FlagManager.cpp b/services/surfaceflinger/FlagManager.cpp index 11a5e0da8c..1f8a3f5ca6 100644 --- a/services/surfaceflinger/FlagManager.cpp +++ b/services/surfaceflinger/FlagManager.cpp @@ -104,6 +104,7 @@ void FlagManager::dump(std::string& result) const { DUMP_FLAG(vrr_config); DUMP_FLAG(hotplug2); DUMP_FLAG(hdcp_level_hal); + DUMP_FLAG(multithreaded_present); #undef DUMP_FLAG } @@ -169,6 +170,7 @@ FLAG_MANAGER_READ_ONLY_FLAG(misc1, "") FLAG_MANAGER_READ_ONLY_FLAG(vrr_config, "debug.sf.enable_vrr_config") FLAG_MANAGER_READ_ONLY_FLAG(hotplug2, "") FLAG_MANAGER_READ_ONLY_FLAG(hdcp_level_hal, "") +FLAG_MANAGER_READ_ONLY_FLAG(multithreaded_present, "debug.sf.multithreaded_present") /// Trunk stable server flags /// FLAG_MANAGER_SERVER_FLAG(late_boot_misc2, "") diff --git a/services/surfaceflinger/FlagManager.h b/services/surfaceflinger/FlagManager.h index 1a689937be..10784a7c0a 100644 --- a/services/surfaceflinger/FlagManager.h +++ b/services/surfaceflinger/FlagManager.h @@ -53,6 +53,7 @@ public: bool vrr_config() const; bool hotplug2() const; bool hdcp_level_hal() const; + bool multithreaded_present() const; /// Trunk stable server flags /// bool late_boot_misc2() const; |