Flutter iOS Embedder
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
vsync_waiter_ios.mm File Reference
#import "flutter/shell/platform/darwin/ios/framework/Source/vsync_waiter_ios.h"
#include <utility>
#include <Foundation/Foundation.h>
#include <UIKit/UIKit.h>
#include <mach/mach_time.h>
#include "flutter/common/task_runners.h"
#include "flutter/fml/logging.h"
#include "flutter/fml/memory/task_runner_checker.h"
#include "flutter/fml/trace_event.h"
#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterMacros.h"

Go to the source code of this file.

Namespaces

 flutter
 

Variables

FLUTTER_ASSERT_ARC NSString *const kCADisableMinimumFrameDurationOnPhoneKey = @"@"CADisableMinimumFrameDurationOnPhone"
 Info.plist key enabling the full range of ProMotion refresh rates for CADisplayLink callbacks and CAAnimation animations in the app. More...
 
const static double kRefreshRateDiffToIgnore = 0.1
 
CADisplayLink * _displayLink
 

Variable Documentation

◆ _displayLink

CADisplayLink* _displayLink
Initial value:
{
flutter::VsyncWaiter::Callback _callback

Definition at line 66 of file vsync_waiter_ios.mm.

Referenced by VSyncClient::await, VSyncClient::initWithTaskRunner:callback:, VSyncClient::invalidate, VSyncClient::pause, and VSyncClient::setMaxRefreshRate:.

◆ kCADisableMinimumFrameDurationOnPhoneKey

FLUTTER_ASSERT_ARC NSString* const kCADisableMinimumFrameDurationOnPhoneKey = @"@"CADisableMinimumFrameDurationOnPhone"

Info.plist key enabling the full range of ProMotion refresh rates for CADisplayLink callbacks and CAAnimation animations in the app.

See also
https://developer.apple.com/documentation/quartzcore/optimizing_promotion_refresh_rates_for_iphone_13_pro_and_ipad_pro#3885321

Definition at line 21 of file vsync_waiter_ios.mm.

◆ kRefreshRateDiffToIgnore

const static double kRefreshRateDiffToIgnore = 0.1
static

Definition at line 28 of file vsync_waiter_ios.mm.

Referenced by flutter::VsyncWaiterIOS::AwaitVSync.