Skip to content

Commit 4fabc01

Browse files
author
Lucas Berthou
committed
SF: cleaning up hotplug2 flag
This flag has reached nextfood a long time ago and is therefore no longer needed. Bug: 374185760 Flag: EXEMPT flag removal Test: manual Change-Id: I6d21b4381bbadcfb4661cdbc9b665727fa2d3c90
1 parent 6501473 commit 4fabc01

3 files changed

Lines changed: 6 additions & 13 deletions

File tree

services/surfaceflinger/SurfaceFlinger.cpp

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,12 +2248,10 @@ void SurfaceFlinger::onComposerHalHotplugEvent(hal::HWDisplayId hwcDisplayId,
22482248
return;
22492249
}
22502250

2251-
if (FlagManager::getInstance().hotplug2()) {
2252-
// TODO(b/311403559): use enum type instead of int
2253-
const auto errorCode = static_cast<int32_t>(event);
2254-
ALOGD("%s: Hotplug error %d for hwcDisplayId %" PRIu64, __func__, errorCode, hwcDisplayId);
2255-
mScheduler->dispatchHotplugError(errorCode);
2256-
}
2251+
// TODO(b/311403559): use enum type instead of int
2252+
const auto errorCode = static_cast<int32_t>(event);
2253+
ALOGD("%s: Hotplug error %d for hwcDisplayId %" PRIu64, __func__, errorCode, hwcDisplayId);
2254+
mScheduler->dispatchHotplugError(errorCode);
22572255
}
22582256

22592257
void SurfaceFlinger::onComposerHalVsyncPeriodTimingChanged(
@@ -3483,10 +3481,8 @@ bool SurfaceFlinger::configureLocked() {
34833481
processHotplugConnect(displayId, hwcDisplayId, std::move(*info),
34843482
displayString.c_str());
34853483
if (!activeModeIdOpt) {
3486-
if (FlagManager::getInstance().hotplug2()) {
3487-
mScheduler->dispatchHotplugError(
3488-
static_cast<int32_t>(DisplayHotplugEvent::ERROR_UNKNOWN));
3489-
}
3484+
mScheduler->dispatchHotplugError(
3485+
static_cast<int32_t>(DisplayHotplugEvent::ERROR_UNKNOWN));
34903486
getHwComposer().disconnectDisplay(displayId);
34913487
continue;
34923488
}

services/surfaceflinger/common/FlagManager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ void FlagManager::dump(std::string& result) const {
123123
DUMP_READ_ONLY_FLAG(frame_rate_category_mrr);
124124
DUMP_READ_ONLY_FLAG(misc1);
125125
DUMP_READ_ONLY_FLAG(vrr_config);
126-
DUMP_READ_ONLY_FLAG(hotplug2);
127126
DUMP_READ_ONLY_FLAG(hdcp_level_hal);
128127
DUMP_READ_ONLY_FLAG(multithreaded_present);
129128
DUMP_READ_ONLY_FLAG(add_sf_skipped_frames_to_trace);
@@ -233,7 +232,6 @@ FLAG_MANAGER_READ_ONLY_FLAG(stable_edid_ids, "debug.sf.stable_edid_ids")
233232
FLAG_MANAGER_READ_ONLY_FLAG(frame_rate_category_mrr, "debug.sf.frame_rate_category_mrr")
234233
FLAG_MANAGER_READ_ONLY_FLAG(misc1, "")
235234
FLAG_MANAGER_READ_ONLY_FLAG(vrr_config, "debug.sf.enable_vrr_config")
236-
FLAG_MANAGER_READ_ONLY_FLAG(hotplug2, "")
237235
FLAG_MANAGER_READ_ONLY_FLAG(hdcp_level_hal, "")
238236
FLAG_MANAGER_READ_ONLY_FLAG(multithreaded_present, "debug.sf.multithreaded_present")
239237
FLAG_MANAGER_READ_ONLY_FLAG(add_sf_skipped_frames_to_trace, "")

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ class FlagManager {
6161
bool stable_edid_ids() const;
6262
bool misc1() const;
6363
bool vrr_config() const;
64-
bool hotplug2() const;
6564
bool hdcp_level_hal() const;
6665
bool multithreaded_present() const;
6766
bool add_sf_skipped_frames_to_trace() const;

0 commit comments

Comments
 (0)