diff options
| author | 2024-10-28 17:21:39 -0400 | |
|---|---|---|
| committer | 2024-10-28 17:28:51 -0400 | |
| commit | 066288aa8a60359dec20eb378c85c0bcb6a032cc (patch) | |
| tree | 73d7522a06a21ca94780d2c36d98f1bafb146df0 | |
| parent | ae65265a52b7ad57051e86125345983d4a7fa064 (diff) | |
SF,HDR: Add readonly flag for connected display HDR feature
Bug: 374182788
Bug: 374187407
Test: adb shell dumpsys SurfaceFlinger | grep connected_display_hdr
Flag: com.android.graphics.surfaceflinger.flags.connected_display_hdr
Change-Id: I29ba7ecb289f55e6d2be2b74f82bf012d3530ec5
Signed-off-by: Sasha McIntosh <sashamcintosh@google.com>
| -rw-r--r-- | services/surfaceflinger/common/FlagManager.cpp | 2 | ||||
| -rw-r--r-- | services/surfaceflinger/common/include/common/FlagManager.h | 1 | ||||
| -rw-r--r-- | services/surfaceflinger/surfaceflinger_flags_new.aconfig | 8 |
3 files changed, 11 insertions, 0 deletions
diff --git a/services/surfaceflinger/common/FlagManager.cpp b/services/surfaceflinger/common/FlagManager.cpp index 658bca6f31..992c6b0846 100644 --- a/services/surfaceflinger/common/FlagManager.cpp +++ b/services/surfaceflinger/common/FlagManager.cpp @@ -157,6 +157,7 @@ void FlagManager::dump(std::string& result) const { DUMP_READ_ONLY_FLAG(trace_frame_rate_override); DUMP_READ_ONLY_FLAG(true_hdr_screenshots); DUMP_READ_ONLY_FLAG(display_config_error_hal); + DUMP_READ_ONLY_FLAG(connected_display_hdr); #undef DUMP_READ_ONLY_FLAG #undef DUMP_SERVER_FLAG @@ -262,6 +263,7 @@ FLAG_MANAGER_READ_ONLY_FLAG(force_compile_graphite_renderengine, ""); FLAG_MANAGER_READ_ONLY_FLAG(single_hop_screenshot, ""); FLAG_MANAGER_READ_ONLY_FLAG(true_hdr_screenshots, "debug.sf.true_hdr_screenshots"); FLAG_MANAGER_READ_ONLY_FLAG(display_config_error_hal, ""); +FLAG_MANAGER_READ_ONLY_FLAG(connected_display_hdr, ""); /// Trunk stable server flags /// FLAG_MANAGER_SERVER_FLAG(refresh_rate_overlay_on_external_display, "") diff --git a/services/surfaceflinger/common/include/common/FlagManager.h b/services/surfaceflinger/common/include/common/FlagManager.h index 4f34718f4e..3ab65381fb 100644 --- a/services/surfaceflinger/common/include/common/FlagManager.h +++ b/services/surfaceflinger/common/include/common/FlagManager.h @@ -95,6 +95,7 @@ public: bool trace_frame_rate_override() const; bool true_hdr_screenshots() const; bool display_config_error_hal() const; + bool connected_display_hdr() const; protected: // overridden for unit tests diff --git a/services/surfaceflinger/surfaceflinger_flags_new.aconfig b/services/surfaceflinger/surfaceflinger_flags_new.aconfig index f758879687..cfeaa7d1af 100644 --- a/services/surfaceflinger/surfaceflinger_flags_new.aconfig +++ b/services/surfaceflinger/surfaceflinger_flags_new.aconfig @@ -49,6 +49,14 @@ flag { } # commit_not_composited flag { + name: "connected_display_hdr" + namespace: "core_graphics" + description: "enable connected display hdr capability" + bug: "374182788" + is_fixed_read_only: true +} # connected_display_hdr + +flag { name: "correct_dpi_with_display_size" namespace: "core_graphics" description: "indicate whether missing or likely incorrect dpi should be corrected using the display size." |