Skip to content

Commit 8e0f200

Browse files
Treehugger RobotAndroid (Google) Code Review
authored andcommitted
Merge "[SF] Cleanup flag vrr_bugfix_dropped_frame" into main
2 parents cb8b75a + 233ae09 commit 8e0f200

File tree

4 files changed

+1
-19
lines changed

4 files changed

+1
-19
lines changed

services/surfaceflinger/Scheduler/Scheduler.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,10 +1194,6 @@ auto Scheduler::applyPolicy(S Policy::*statePtr, T&& newState) -> GlobalSignals
11941194
.shouldEmitEvent()});
11951195
}
11961196

1197-
if (!FlagManager::getInstance().vrr_bugfix_dropped_frame()) {
1198-
frameRateOverridesChanged =
1199-
updateFrameRateOverridesLocked(consideredSignals, modeOpt->fps);
1200-
}
12011197
if (mPolicy.modeOpt != modeOpt) {
12021198
mPolicy.modeOpt = modeOpt;
12031199
refreshRateChanged = true;
@@ -1211,7 +1207,7 @@ auto Scheduler::applyPolicy(S Policy::*statePtr, T&& newState) -> GlobalSignals
12111207
mSchedulerCallback.requestDisplayModes(std::move(modeRequests));
12121208
}
12131209

1214-
if (FlagManager::getInstance().vrr_bugfix_dropped_frame()) {
1210+
{
12151211
std::scoped_lock lock(mPolicyLock);
12161212
frameRateOverridesChanged =
12171213
updateFrameRateOverridesLocked(consideredSignals, mPolicy.modeOpt->fps);

services/surfaceflinger/common/FlagManager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ void FlagManager::dump(std::string& result) const {
178178
DUMP_ACONFIG_FLAG(trace_frame_rate_override);
179179
DUMP_ACONFIG_FLAG(true_hdr_screenshots);
180180
DUMP_ACONFIG_FLAG(use_known_refresh_rate_for_fps_consistency);
181-
DUMP_ACONFIG_FLAG(vrr_bugfix_dropped_frame);
182181
DUMP_ACONFIG_FLAG(vrr_config);
183182
DUMP_ACONFIG_FLAG(vulkan_renderengine);
184183
DUMP_ACONFIG_FLAG(window_blur_kawase2);
@@ -275,7 +274,6 @@ FLAG_MANAGER_ACONFIG_FLAG(restore_blur_step, "debug.renderengine.restore_blur_st
275274
FLAG_MANAGER_ACONFIG_FLAG(dont_skip_on_early_ro, "")
276275
FLAG_MANAGER_ACONFIG_FLAG(no_vsyncs_on_screen_off, "debug.sf.no_vsyncs_on_screen_off")
277276
FLAG_MANAGER_ACONFIG_FLAG(protected_if_client, "")
278-
FLAG_MANAGER_ACONFIG_FLAG(vrr_bugfix_dropped_frame, "")
279277
FLAG_MANAGER_ACONFIG_FLAG(graphite_renderengine, "debug.renderengine.graphite")
280278
FLAG_MANAGER_ACONFIG_FLAG(filter_frames_before_trace_starts, "")
281279
FLAG_MANAGER_ACONFIG_FLAG(latch_unsignaled_with_auto_refresh_changed, "");

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ class FlagManager {
113113
bool trace_frame_rate_override() const;
114114
bool true_hdr_screenshots() const;
115115
bool use_known_refresh_rate_for_fps_consistency() const;
116-
bool vrr_bugfix_dropped_frame() const;
117116
bool vrr_config() const;
118117
bool vulkan_renderengine() const;
119118
bool window_blur_kawase2() const;

services/surfaceflinger/surfaceflinger_flags_new.aconfig

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -317,17 +317,6 @@ flag {
317317
}
318318
} # override_trusted_overlay
319319

320-
flag {
321-
name: "vrr_bugfix_dropped_frame"
322-
namespace: "core_graphics"
323-
description: "bug fix for VRR dropped frame"
324-
bug: "343603085"
325-
is_fixed_read_only: true
326-
metadata {
327-
purpose: PURPOSE_BUGFIX
328-
}
329-
} # vrr_bugfix_dropped_frame
330-
331320
flag {
332321
name: "vsync_predictor_recovery"
333322
namespace: "core_graphics"

0 commit comments

Comments
 (0)