File tree Expand file tree Collapse file tree 5 files changed +8
-228
lines changed Expand file tree Collapse file tree 5 files changed +8
-228
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
#import " RCTDisplayLink.h"
9
9
10
10
#import < Foundation/Foundation.h>
11
- #import " DCDDisplayLink.h "
11
+ #import < QuartzCore/CADisplayLink.h >
12
12
13
13
#import " RCTAssert.h"
14
14
#import " RCTBridgeModule.h"
22
22
23
23
@implementation RCTDisplayLink
24
24
{
25
- DCDDisplayLink *_jsDisplayLink;
25
+ CADisplayLink *_jsDisplayLink;
26
26
NSMutableSet <RCTModuleData *> *_frameUpdateObservers;
27
27
NSRunLoop *_runLoop;
28
28
}
@@ -31,7 +31,7 @@ - (instancetype)init
31
31
{
32
32
if ((self = [super init ])) {
33
33
_frameUpdateObservers = [NSMutableSet new ];
34
- _jsDisplayLink = [DCDDisplayLink displayLinkWithTarget: self selector: @selector (_jsThreadUpdate: )];
34
+ _jsDisplayLink = [CADisplayLink displayLinkWithTarget: self selector: @selector (_jsThreadUpdate: )];
35
35
}
36
36
37
37
return self;
@@ -107,7 +107,7 @@ - (void)dispatchBlock:(dispatch_block_t)block
107
107
}
108
108
}
109
109
110
- - (void )_jsThreadUpdate:(DCDDisplayLink *)displayLink
110
+ - (void )_jsThreadUpdate:(CADisplayLink *)displayLink
111
111
{
112
112
RCTAssertRunLoop ();
113
113
Original file line number Diff line number Diff line change 7
7
8
8
#import < Foundation/Foundation.h>
9
9
10
- @class DCDDisplayLink ;
10
+ @class CADisplayLink ;
11
11
12
12
/* *
13
13
* Interface containing the information about the last screen refresh.
24
24
*/
25
25
@property (nonatomic , readonly ) NSTimeInterval deltaTime;
26
26
27
- - (instancetype )initWithDisplayLink : (DCDDisplayLink *)displayLink NS_DESIGNATED_INITIALIZER;
27
+ - (instancetype )initWithDisplayLink : (CADisplayLink *)displayLink NS_DESIGNATED_INITIALIZER;
28
28
29
29
@end
30
30
Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
7
8
- #import " DCDDisplayLink.h "
8
+ #import < QuartzCore/CADisplayLink.h >
9
9
10
10
#import " RCTFrameUpdate.h"
11
11
@@ -15,7 +15,7 @@ @implementation RCTFrameUpdate
15
15
16
16
RCT_NOT_IMPLEMENTED (- (instancetype )init)
17
17
18
- - (instancetype )initWithDisplayLink:(DCDDisplayLink *)displayLink
18
+ - (instancetype )initWithDisplayLink:(CADisplayLink *)displayLink
19
19
{
20
20
if ((self = [super init ])) {
21
21
_timestamp = displayLink.timestamp ;
You can’t perform that action at this time.
0 commit comments