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

Commit 8470d768 authored by ramindani's avatar ramindani
Browse files

[SF] Add a flag to support N vsyncs in the FrameTargeter

Test: manual test
BUG: 308858993
Change-Id: If711f18d5cf518f1edd12a40e946fc857e258a37
parent 916e2211
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -142,6 +142,7 @@ void FlagManager::dump(std::string& result) const {
    DUMP_READ_ONLY_FLAG(graphite_renderengine);
    DUMP_READ_ONLY_FLAG(latch_unsignaled_with_auto_refresh_changed);
    DUMP_READ_ONLY_FLAG(deprecate_vsync_sf);
    DUMP_READ_ONLY_FLAG(allow_n_vsyncs_in_targeter);

#undef DUMP_READ_ONLY_FLAG
#undef DUMP_SERVER_FLAG
@@ -234,6 +235,7 @@ FLAG_MANAGER_READ_ONLY_FLAG(ce_fence_promise, "");
FLAG_MANAGER_READ_ONLY_FLAG(graphite_renderengine, "debug.renderengine.graphite")
FLAG_MANAGER_READ_ONLY_FLAG(latch_unsignaled_with_auto_refresh_changed, "");
FLAG_MANAGER_READ_ONLY_FLAG(deprecate_vsync_sf, "");
FLAG_MANAGER_READ_ONLY_FLAG(allow_n_vsyncs_in_targeter, "");

/// Trunk stable server flags ///
FLAG_MANAGER_SERVER_FLAG(refresh_rate_overlay_on_external_display, "")
+1 −0
Original line number Diff line number Diff line
@@ -80,6 +80,7 @@ public:
    bool graphite_renderengine() const;
    bool latch_unsignaled_with_auto_refresh_changed() const;
    bool deprecate_vsync_sf() const;
    bool allow_n_vsyncs_in_targeter() const;

protected:
    // overridden for unit tests
+11 −0
Original line number Diff line number Diff line
@@ -222,4 +222,15 @@ flag {
  }
}

flag {
  name: "allow_n_vsyncs_in_targeter"
  namespace: "core_graphics"
  description: "This flag will enable utilizing N vsyncs in the FrameTargeter for past vsyncs"
  bug: "308858993"
  is_fixed_read_only: true
  metadata {
    purpose: PURPOSE_BUGFIX
  }
}

# This file is locked and should not be changed. Use surfaceflinger_flags_new.aconfig