| /* | |
| * Copyright 2018 The WebRTC project authors. All Rights Reserved. | |
| * | |
| * Use of this source code is governed by a BSD-style license | |
| * that can be found in the LICENSE file in the root of the source | |
| * tree. An additional intellectual property rights grant can be found | |
| * in the file PATENTS. All contributing project authors may | |
| * be found in the AUTHORS file in the root of the source tree. | |
| */ | |
| #import <Foundation/Foundation.h> | |
| // RTCDisplayLinkTimer wraps a CADisplayLink and is set to fire every two screen | |
| // refreshes, which should be 30fps. We wrap the display link in order to avoid | |
| // a retain cycle since CADisplayLink takes a strong reference onto its target. | |
| // The timer is paused by default. | |
| @interface RTCDisplayLinkTimer : NSObject | |
| @property(nonatomic) BOOL isPaused; | |
| - (instancetype)initWithTimerHandler:(void (^)(void))timerHandler; | |
| - (void)invalidate; | |
| @end |