Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
FlutterTimeConverter.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERTIMECONVERTER_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERTIMECONVERTER_H_
7
8#import <CoreGraphics/CoreGraphics.h>
9
10@class FlutterEngine;
11
12/// Converts between the time representation used by Flutter Engine and CAMediaTime.
13@interface FlutterTimeConverter : NSObject
14
15- (instancetype)initWithEngine:(FlutterEngine*)engine;
16
17- (uint64_t)CAMediaTimeToEngineTime:(CFTimeInterval)time;
18- (CFTimeInterval)engineTimeToCAMediaTime:(uint64_t)time;
19
20@end
21
22#endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERTIMECONVERTER_H_
Converts between the time representation used by Flutter Engine and CAMediaTime.