| Flutter macOS Embedder |

Classes | Macros | Variables
FlutterVSyncWaiter.mm File Reference
`#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterVSyncWaiter.h"`
`#include <optional>`
`#include <vector>`
`#include "flutter/fml/logging.h"`
`#import "flutter/shell/platform/darwin/common/InternalFlutterSwiftCommon/InternalFlutterSwiftCommon.h"`
`#import "flutter/shell/platform/darwin/macos/InternalFlutterSwift/InternalFlutterSwift.h"`
`#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterDisplayLink.h"`
`#include <OSLog/OSLog.h>`

Go to the source code of this file.

## Macros
#define | VSYNC_TRACING_ENABLED 1
#define | TRACE_VSYNC(event_type, baton)

## Variables
static const CFTimeInterval | kTimerLatencyCompensation = 0.001
FlutterDisplayLink * | _displayLink
void(^ | _block )(CFTimeInterval, CFTimeInterval, uintptr_t)
CFTimeInterval | _lastTargetTimestamp
BOOL | _warmUpFrame

## Macro Definition Documentation

## ◆ TRACE_VSYNC

#define TRACE_VSYNC | ( |  | event_type,
|  |  | baton
| ) |  |

Value:
do { \
os_log_t log = os_log_create("FlutterVSync", "PointsOfInterest"); \
os_signpost_event_emit(log, OS_SIGNPOST_ID_EXCLUSIVE, event_type, "baton %lx", baton); \
} while (0)

Definition at line 23 of file FlutterVSyncWaiter.mm.

## ◆ VSYNC_TRACING_ENABLED

#define VSYNC_TRACING_ENABLED 1

Definition at line 15 of file FlutterVSyncWaiter.mm.

## Variable Documentation

## ◆ _block

void(^ _block) (CFTimeInterval, CFTimeInterval, uintptr_t) | ( | CFTimeInterval | ,
|  | CFTimeInterval | ,
|  | uintptr_t |
| ) |  |

## ◆ _displayLink

FlutterDisplayLink* _displayLink

Initial value:
{
std::optional<std::uintptr_t> _pendingBaton

Definition at line 43 of file FlutterVSyncWaiter.mm.

## ◆ _lastTargetTimestamp

CFTimeInterval _lastTargetTimestamp

Definition at line 45 of file FlutterVSyncWaiter.mm.

## ◆ _warmUpFrame

BOOL _warmUpFrame

Definition at line 46 of file FlutterVSyncWaiter.mm.

## ◆ kTimerLatencyCompensation

const CFTimeInterval kTimerLatencyCompensation = 0.001
| static

Definition at line 39 of file FlutterVSyncWaiter.mm.