Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 86e992c

Browse files
committed
add in AwaitVsync() to SecondaryCallbacks
1 parent af15438 commit 86e992c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shell/common/vsync_waiter.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ void VsyncWaiter::AsyncWaitForVsync(const Callback& callback) {
5252
return;
5353
}
5454
callback_ = std::move(callback);
55-
/*
55+
5656
if (!secondary_callbacks_.empty()) {
5757
// Return directly as `AwaitVSync` is already called by
5858
// `ScheduleSecondaryCallback`.
5959
return;
6060
}
61-
*/
61+
6262
}
6363
AwaitVSync();
6464
}
@@ -88,7 +88,7 @@ void VsyncWaiter::ScheduleSecondaryCallback(uintptr_t id,
8888
return;
8989
}
9090
}
91-
// AwaitVSync();
91+
AwaitVSync();
9292
}
9393

9494
void VsyncWaiter::FireCallback(fml::TimePoint frame_start_time,

0 commit comments

Comments
 (0)