#import <vsync_waiter_ios.h>
Definition at line 67 of file vsync_waiter_ios.h.
◆ VsyncWaiterIOS
- VsyncWaiterIOS: |
|
(const flutter::TaskRunners &) |
task_runners |
|
Definition at line 23 of file vsync_waiter_ios.mm.
24 : VsyncWaiter(task_runners) {
25 auto callback = [this](std::unique_ptr<flutter::FrameTimingsRecorder> recorder) {
26 const fml::TimePoint start_time = recorder->GetVsyncStartTime();
27 const fml::TimePoint target_time = recorder->GetVsyncTargetTime();
28 FireCallback(start_time, target_time,
true);
31 fml::scoped_nsobject{[[
VSyncClient alloc] initWithTaskRunner:task_runners_.GetUITaskRunner()
◆ ~VsyncWaiterIOS
◆ AwaitVSync
Definition at line 42 of file vsync_waiter_ios.mm.
44 if (fml::TaskRunnerChecker::RunsOnTheSameThread(
45 task_runners_.GetRasterTaskRunner()->GetTaskQueueId(),
46 task_runners_.GetPlatformTaskRunner()->GetTaskQueueId())) {
47 BOOL isRunningOnMac = NO;
48 if (@available(iOS 14.0, *)) {
49 isRunningOnMac = [NSProcessInfo processInfo].iOSAppOnMac;
51 if (!isRunningOnMac) {
55 new_max_refresh_rate = 80;
59 max_refresh_rate_ = new_max_refresh_rate;
60 [client_.get() setMaxRefreshRate:max_refresh_rate_];
62 [client_.get() await];
References kRefreshRateDiffToIgnore.
◆ GetRefreshRate
- (double) VsyncWaiterIOS: |
|
|
const |
◆ GetVsyncClient
The documentation for this class was generated from the following files: