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

Commit 65bc3ba1 authored by ramindani's avatar ramindani
Browse files

SF: Add flag vsync_predictor_predicts_within_threshold flag

Bug: 411593328
Bug: 385059265
Flag: com.android.graphics.surfaceflinger.flags.vsync_predictor_predicts_within_threshold
Test: atest VSyncPredictorTest
Change-Id: I03347cde92a9b9603b4320690c00a7f012f24f8e
parent d1b0cbd7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -128,6 +128,7 @@ void FlagManager::dump(std::string& result) const {
    DUMP_ACONFIG_FLAG(vsync_predictor_rate_change_with_aligned_sequence);
    DUMP_ACONFIG_FLAG(unify_refresh_rate_callbacks);
    DUMP_ACONFIG_FLAG(vsync_predictor_recovery);
    DUMP_ACONFIG_FLAG(vsync_predictor_predicts_within_threshold);

    /// Trunk stable readonly flags ///
    /// IMPORTANT - please keep alphabetize to reduce merge conflicts
@@ -291,6 +292,7 @@ FLAG_MANAGER_ACONFIG_FLAG(readback_screenshot, "")
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, "");
FLAG_MANAGER_ACONFIG_FLAG(vsync_predictor_predicts_within_threshold, "");

/// Trunk stable server (R/W) flags from outside SurfaceFlinger ///
FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(adpf_use_fmq_channel, "", android::os)
+1 −0
Original line number Diff line number Diff line
@@ -65,6 +65,7 @@ public:
    bool vsync_predictor_rate_change_with_aligned_sequence() const;
    bool unify_refresh_rate_callbacks() const;
    bool vsync_predictor_recovery() const;
    bool vsync_predictor_predicts_within_threshold() const;

    /// Trunk stable readonly flags ///
    /// IMPORTANT - please keep alphabetize to reduce merge conflicts
+10 −0
Original line number Diff line number Diff line
@@ -314,6 +314,16 @@ flag {
  }
 } # vsync_predictor_recovery

flag {
  name: "vsync_predictor_predicts_within_threshold"
  namespace: "core_graphics"
  description: "VSyncPredictor to ignore vsyncs before the given threshold for period and intercept calculation"
  bug: "411593328"
  metadata {
    purpose: PURPOSE_BUGFIX
  }
 } # vsync_predictor_predicts_within_threshold

flag {
  name: "wb_virtualdisplay2"
  namespace: "core_graphics"