Skip to content

Commit ed652ae

Browse files
Rupesh BansalAndroid (Google) Code Review
authored andcommitted
Merge "Remove idle screen refresh rate timeout flag" into main
2 parents 92e0a7e + 4acdea6 commit ed652ae

4 files changed

Lines changed: 2 additions & 11 deletions

File tree

services/surfaceflinger/Scheduler/RefreshRateSelector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,7 @@ void RefreshRateSelector::dump(utils::Dumper& dumper) const {
16741674
}
16751675

16761676
std::chrono::milliseconds RefreshRateSelector::getIdleTimerTimeout() {
1677-
if (FlagManager::getInstance().idle_screen_refresh_rate_timeout() && mIdleTimer) {
1677+
if (mIdleTimer) {
16781678
return std::chrono::duration_cast<std::chrono::milliseconds>(mIdleTimer->interval());
16791679
}
16801680
return mConfig.legacyIdleTimerTimeout;

services/surfaceflinger/SurfaceFlinger.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8198,13 +8198,9 @@ status_t SurfaceFlinger::setDesiredDisplayModeSpecs(const sp<IBinder>& displayTo
81988198
return INVALID_OPERATION;
81998199
} else {
82008200
using Policy = scheduler::RefreshRateSelector::DisplayManagerPolicy;
8201-
const auto idleScreenConfigOpt =
8202-
FlagManager::getInstance().idle_screen_refresh_rate_timeout()
8203-
? specs.idleScreenRefreshRateConfig
8204-
: std::nullopt;
82058201
const Policy policy{DisplayModeId(specs.defaultMode), translate(specs.primaryRanges),
82068202
translate(specs.appRequestRanges), specs.allowGroupSwitching,
8207-
idleScreenConfigOpt};
8203+
specs.idleScreenRefreshRateConfig};
82088204

82098205
return setDesiredDisplayModeSpecsInternal(display, policy);
82108206
}

services/surfaceflinger/common/FlagManager.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ void FlagManager::dump(std::string& result) const {
163163
DUMP_ACONFIG_FLAG(graphite_renderengine);
164164
DUMP_ACONFIG_FLAG(hdcp_level_hal);
165165
DUMP_ACONFIG_FLAG(hdcp_negotiation);
166-
DUMP_ACONFIG_FLAG(idle_screen_refresh_rate_timeout);
167166
DUMP_ACONFIG_FLAG(latch_unsignaled_with_auto_refresh_changed);
168167
DUMP_ACONFIG_FLAG(local_tonemap_screenshots);
169168
DUMP_ACONFIG_FLAG(misc1);
@@ -314,9 +313,6 @@ FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(adpf_use_fmq_channel, "", android::os)
314313
FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(correct_virtual_display_power_state, "",
315314
android::companion::virtualdevice::flags)
316315

317-
/// Trunk stable readonly flags from outside SurfaceFlinger ///
318-
FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(idle_screen_refresh_rate_timeout, "",
319-
com::android::server::display::feature::flags)
320316
FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(adpf_use_fmq_channel_fixed, "", android::os)
321317
FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(trace_frame_rate_override, "",
322318
com::android::graphics::libgui::flags);

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ class FlagManager {
9797
bool graphite_renderengine() const;
9898
bool hdcp_level_hal() const;
9999
bool hdcp_negotiation() const;
100-
bool idle_screen_refresh_rate_timeout() const;
101100
bool latch_unsignaled_with_auto_refresh_changed() const;
102101
bool local_tonemap_screenshots() const;
103102
bool luts_api() const;

0 commit comments

Comments
 (0)