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

Commit 2b96d359 authored by Alec Mouri's avatar Alec Mouri
Browse files

Add flag for HDR screenshots

Bug: 329470026
Flag: com.android.graphics.surfaceflinger.flags.true_hdr_screenshots
Test: builds
Change-Id: I13650b4433ab062b7f5f67005c0948b417c1f269
parent 697bd220
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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, "")
+1 −0
Original line number Diff line number Diff line
@@ -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
+8 −0
Original line number Diff line number Diff line
@@ -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"