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

Commit b01bc63c authored by Rachel Lee's avatar Rachel Lee Committed by ramindani
Browse files

Flag to unify SF refresh rate change callbacks

Bug: 399482301
Test: presubmit
Flag: com.android.graphics.surfaceflinger.flags.unify_refresh_rate_callbacks
Change-Id: I2f053205a956ff9d80c17d95d32b0c176e3816cf
parent 71d2535c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -133,6 +133,7 @@ void FlagManager::dump(std::string& result) const {
    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(unify_refresh_rate_callbacks);
    DUMP_ACONFIG_FLAG(vsync_predictor_recovery);

    /// Trunk stable readonly flags ///
@@ -297,6 +298,7 @@ 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(unify_refresh_rate_callbacks, "");
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
@@ -67,6 +67,7 @@ public:
    bool monitor_buffer_fences() const;
    bool refresh_rate_overlay_on_external_display() const;
    bool vsync_predictor_rate_change_with_aligned_sequence() const;
    bool unify_refresh_rate_callbacks() const;
    bool vsync_predictor_recovery() const;

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

flag {
    name: "unify_refresh_rate_callbacks"
    namespace: "core_graphics"
    description: "Unifies mode changed and FrameRateOverride callbacks"
    bug: "399482301"
    metadata {
        purpose: PURPOSE_BUGFIX
    }
} # unify_refresh_rate_callbacks

flag {
  name: "vsync_predictor_rate_change_with_aligned_sequence"
  namespace: "core_graphics"