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

Commit 911d5c05 authored by ramindani's avatar ramindani
Browse files

[SF] Add a flag to align FrameRateOverrides for setRenderRate

BUG: 377240935
Test: m
Flag: com.android.graphics.surfaceflinger.flags.vsync_predictor_rate_change_with_aligned_sequence
Change-Id: I9d769fc3e36020e28afc5f47ef983df50ee27923
parent ea6f56d6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -131,6 +131,7 @@ void FlagManager::dump(std::string& result) const {
    DUMP_ACONFIG_FLAG(increase_missed_frame_jank_threshold);
    DUMP_ACONFIG_FLAG(monitor_buffer_fences);
    DUMP_ACONFIG_FLAG(refresh_rate_overlay_on_external_display);
    DUMP_ACONFIG_FLAG(vsync_predictor_rate_change_with_aligned_sequence);
    DUMP_ACONFIG_FLAG(vsync_predictor_recovery);

    /// Trunk stable readonly flags ///
@@ -306,6 +307,7 @@ FLAG_MANAGER_ACONFIG_FLAG(adpf_native_session_manager, "");
FLAG_MANAGER_ACONFIG_FLAG(graphite_renderengine_preview_rollout, "");
FLAG_MANAGER_ACONFIG_FLAG(increase_missed_frame_jank_threshold, "");
FLAG_MANAGER_ACONFIG_FLAG(monitor_buffer_fences, "");
FLAG_MANAGER_ACONFIG_FLAG(vsync_predictor_rate_change_with_aligned_sequence, "")
FLAG_MANAGER_ACONFIG_FLAG(vsync_predictor_recovery, "");

/// Trunk stable server (R/W) flags from outside SurfaceFlinger ///
+1 −0
Original line number Diff line number Diff line
@@ -65,6 +65,7 @@ public:
    bool increase_missed_frame_jank_threshold() const;
    bool monitor_buffer_fences() const;
    bool refresh_rate_overlay_on_external_display() const;
    bool vsync_predictor_rate_change_with_aligned_sequence() const;
    bool vsync_predictor_recovery() const;

    /// Trunk stable readonly flags ///
+10 −0
Original line number Diff line number Diff line
@@ -325,6 +325,16 @@ flag {
  }
} # override_trusted_overlay

flag {
  name: "vsync_predictor_rate_change_with_aligned_sequence"
  namespace: "core_graphics"
  description: "Render rate changes where all the frame rate overrides align"
  bug: "377240935"
  metadata {
    purpose: PURPOSE_BUGFIX
  }
} # vsync_predictor_rate_change_with_aligned_sequence

flag {
  name: "vsync_predictor_recovery"
  namespace: "core_graphics"