diff options
author | 2024-07-09 19:19:36 +0000 | |
---|---|---|
committer | 2024-08-22 20:10:08 +0000 | |
commit | 2b96d359af29f34d5bf8ec631f1ea56104f0901e (patch) | |
tree | d4cc6e657c0a143898c363447f16a4d91b042e44 | |
parent | 697bd2207a7ccefc8c223049489555bb8a64c4f1 (diff) |
Add flag for HDR screenshots
Bug: 329470026
Flag: com.android.graphics.surfaceflinger.flags.true_hdr_screenshots
Test: builds
Change-Id: I13650b4433ab062b7f5f67005c0948b417c1f269
-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 07c720f670..8ec908fffd 100644 --- a/services/surfaceflinger/common/FlagManager.cpp +++ b/services/surfaceflinger/common/FlagManager.cpp @@ -155,6 +155,7 @@ void FlagManager::dump(std::string& result) const { DUMP_READ_ONLY_FLAG(force_compile_graphite_renderengine); DUMP_READ_ONLY_FLAG(single_hop_screenshot); DUMP_READ_ONLY_FLAG(trace_frame_rate_override); + DUMP_READ_ONLY_FLAG(true_hdr_screenshots); #undef DUMP_READ_ONLY_FLAG #undef DUMP_SERVER_FLAG @@ -259,6 +260,7 @@ FLAG_MANAGER_READ_ONLY_FLAG(override_trusted_overlay, ""); FLAG_MANAGER_READ_ONLY_FLAG(flush_buffer_slots_to_uncache, ""); 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"); /// 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 a4b4a2b9f1..473e564903 100644 --- a/services/surfaceflinger/common/include/common/FlagManager.h +++ b/services/surfaceflinger/common/include/common/FlagManager.h @@ -93,6 +93,7 @@ public: bool force_compile_graphite_renderengine() const; bool single_hop_screenshot() const; bool trace_frame_rate_override() const; + bool true_hdr_screenshots() const; protected: // overridden for unit tests diff --git a/services/surfaceflinger/surfaceflinger_flags_new.aconfig b/services/surfaceflinger/surfaceflinger_flags_new.aconfig index 886167e9f2..0ff846e744 100644 --- a/services/surfaceflinger/surfaceflinger_flags_new.aconfig +++ b/services/surfaceflinger/surfaceflinger_flags_new.aconfig @@ -114,6 +114,14 @@ flag { } } # single_hop_screenshot +flag { + name: "true_hdr_screenshots" + namespace: "core_graphics" + description: "Enables screenshotting display content in HDR, sans tone mapping" + bug: "329470026" + is_fixed_read_only: true +} # true_hdr_screenshots + flag { name: "override_trusted_overlay" namespace: "window_surfaces" |