Skip to content

Commit 06b6e6b

Browse files
Su Hong KooAndroid (Google) Code Review
authored andcommitted
Merge "SF: Feed presentation fences to external displays' vsync predictors" into main
2 parents d9a1a05 + e67937f commit 06b6e6b

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

services/surfaceflinger/SurfaceFlinger.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3459,13 +3459,7 @@ void SurfaceFlinger::onCompositionPresented(PhysicalDisplayId pacesetterId,
34593459
mTimeStats->setPresentFenceGlobal(pacesetterPresentFenceTime);
34603460

34613461
for (auto&& [id, presentFence] : presentFences) {
3462-
ftl::FakeGuard guard(mStateLock);
3463-
const bool isInternalDisplay =
3464-
mPhysicalDisplays.get(id).transform(&PhysicalDisplay::isInternal).value_or(false);
3465-
3466-
if (isInternalDisplay) {
3467-
mScheduler->addPresentFence(id, std::move(presentFence));
3468-
}
3462+
mScheduler->addPresentFence(id, std::move(presentFence));
34693463
}
34703464

34713465
const bool hasPacesetterDisplay =

0 commit comments

Comments
 (0)