Skip to content

Commit c52fcc6

Browse files
author
ramindani
committed
[SF] Flag to use idlePeriod for VSync outlier calculation
Test: None BUG: 346503493 BUG: 385059265 Flag: com.android.graphics.surfaceflinger.flags.vsync_predictor_recovery Change-Id: Ibf0b0afadff480b02ed1f3e897e4789f3937385d
1 parent 01e3f8a commit c52fcc6

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

services/surfaceflinger/common/FlagManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ void FlagManager::dump(std::string& result) const {
128128
DUMP_ACONFIG_FLAG(graphite_renderengine_preview_rollout);
129129
DUMP_ACONFIG_FLAG(increase_missed_frame_jank_threshold);
130130
DUMP_ACONFIG_FLAG(refresh_rate_overlay_on_external_display);
131+
DUMP_ACONFIG_FLAG(vsync_predictor_recovery);
131132

132133
/// Trunk stable readonly flags ///
133134
/// IMPORTANT - please keep alphabetize to reduce merge conflicts
@@ -302,6 +303,7 @@ FLAG_MANAGER_ACONFIG_FLAG(adpf_gpu_sf, "")
302303
FLAG_MANAGER_ACONFIG_FLAG(adpf_native_session_manager, "");
303304
FLAG_MANAGER_ACONFIG_FLAG(graphite_renderengine_preview_rollout, "");
304305
FLAG_MANAGER_ACONFIG_FLAG(increase_missed_frame_jank_threshold, "");
306+
FLAG_MANAGER_ACONFIG_FLAG(vsync_predictor_recovery, "");
305307

306308
/// Trunk stable server (R/W) flags from outside SurfaceFlinger ///
307309
FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(adpf_use_fmq_channel, "", android::os)

services/surfaceflinger/common/include/common/FlagManager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class FlagManager {
6363
bool graphite_renderengine_preview_rollout() const;
6464
bool increase_missed_frame_jank_threshold() const;
6565
bool refresh_rate_overlay_on_external_display() const;
66+
bool vsync_predictor_recovery() const;
6667

6768
/// Trunk stable readonly flags ///
6869
/// IMPORTANT - please keep alphabetize to reduce merge conflicts

services/surfaceflinger/surfaceflinger_flags_new.aconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,16 @@ flag {
313313
}
314314
} # vrr_bugfix_dropped_frame
315315

316+
flag {
317+
name: "vsync_predictor_recovery"
318+
namespace: "core_graphics"
319+
description: "Recover the vsync predictor from bad vsync model"
320+
bug: "385059265"
321+
metadata {
322+
purpose: PURPOSE_BUGFIX
323+
}
324+
} # vsync_predictor_recovery
325+
316326
flag {
317327
name: "window_blur_kawase2"
318328
namespace: "core_graphics"

0 commit comments

Comments
 (0)