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

Commit a8217b5d authored by Ady Abraham's avatar Ady Abraham
Browse files

SF: add a new flag for omiting vsync on screen is OFF

Test: N/A
Bug: 331636736
Flag: com.android.graphics.surfaceflinger.flags.no_vsyncs_on_screen_off
Change-Id: I63916801f39bf45d8f058d36095452d39585c226
parent d74dfd0f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -139,6 +139,7 @@ void FlagManager::dump(std::string& result) const {
    DUMP_READ_ONLY_FLAG(vrr_bugfix_dropped_frame);
    DUMP_READ_ONLY_FLAG(restore_blur_step);
    DUMP_READ_ONLY_FLAG(dont_skip_on_early_ro);
    DUMP_READ_ONLY_FLAG(no_vsyncs_on_screen_off);
    DUMP_READ_ONLY_FLAG(protected_if_client);
    DUMP_READ_ONLY_FLAG(idle_screen_refresh_rate_timeout);
    DUMP_READ_ONLY_FLAG(graphite_renderengine);
@@ -244,6 +245,7 @@ FLAG_MANAGER_READ_ONLY_FLAG(vulkan_renderengine, "debug.renderengine.vulkan")
FLAG_MANAGER_READ_ONLY_FLAG(renderable_buffer_usage, "")
FLAG_MANAGER_READ_ONLY_FLAG(restore_blur_step, "debug.renderengine.restore_blur_step")
FLAG_MANAGER_READ_ONLY_FLAG(dont_skip_on_early_ro, "")
FLAG_MANAGER_READ_ONLY_FLAG(no_vsyncs_on_screen_off, "debug.sf.no_vsyncs_on_screen_off")
FLAG_MANAGER_READ_ONLY_FLAG(protected_if_client, "")
FLAG_MANAGER_READ_ONLY_FLAG(vrr_bugfix_24q4, "");
FLAG_MANAGER_READ_ONLY_FLAG(vrr_bugfix_dropped_frame, "")
+1 −0
Original line number Diff line number Diff line
@@ -77,6 +77,7 @@ public:
    bool renderable_buffer_usage() const;
    bool restore_blur_step() const;
    bool dont_skip_on_early_ro() const;
    bool no_vsyncs_on_screen_off() const;
    bool protected_if_client() const;
    bool idle_screen_refresh_rate_timeout() const;
    bool graphite_renderengine() const;
+8 −0
Original line number Diff line number Diff line
@@ -149,6 +149,14 @@ flag {
  is_fixed_read_only: true
} # local_tonemap_screenshots

flag {
  name: "no_vsyncs_on_screen_off"
  namespace: "core_graphics"
  description: "Stop vsync / Choreographer callbacks to apps when the screen is off"
  bug: "331636736"
  is_fixed_read_only: true
} # no_vsyncs_on_screen_off

flag {
  name: "single_hop_screenshot"
  namespace: "window_surfaces"