Skip to content

Commit 84b75f6

Browse files
committed
Undo DCDDisplayLink
1 parent 15a5f36 commit 84b75f6

File tree

5 files changed

+8
-228
lines changed

5 files changed

+8
-228
lines changed

React/Base/DCDDisplayLink.h

Lines changed: 0 additions & 61 deletions
This file was deleted.

React/Base/DCDDisplayLink.m

Lines changed: 0 additions & 159 deletions
This file was deleted.

React/Base/RCTDisplayLink.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#import "RCTDisplayLink.h"
99

1010
#import <Foundation/Foundation.h>
11-
#import "DCDDisplayLink.h"
11+
#import <QuartzCore/CADisplayLink.h>
1212

1313
#import "RCTAssert.h"
1414
#import "RCTBridgeModule.h"
@@ -22,7 +22,7 @@
2222

2323
@implementation RCTDisplayLink
2424
{
25-
DCDDisplayLink *_jsDisplayLink;
25+
CADisplayLink *_jsDisplayLink;
2626
NSMutableSet<RCTModuleData *> *_frameUpdateObservers;
2727
NSRunLoop *_runLoop;
2828
}
@@ -31,7 +31,7 @@ - (instancetype)init
3131
{
3232
if ((self = [super init])) {
3333
_frameUpdateObservers = [NSMutableSet new];
34-
_jsDisplayLink = [DCDDisplayLink displayLinkWithTarget:self selector:@selector(_jsThreadUpdate:)];
34+
_jsDisplayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(_jsThreadUpdate:)];
3535
}
3636

3737
return self;
@@ -107,7 +107,7 @@ - (void)dispatchBlock:(dispatch_block_t)block
107107
}
108108
}
109109

110-
- (void)_jsThreadUpdate:(DCDDisplayLink *)displayLink
110+
- (void)_jsThreadUpdate:(CADisplayLink *)displayLink
111111
{
112112
RCTAssertRunLoop();
113113

React/Base/RCTFrameUpdate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#import <Foundation/Foundation.h>
99

10-
@class DCDDisplayLink;
10+
@class CADisplayLink;
1111

1212
/**
1313
* Interface containing the information about the last screen refresh.
@@ -24,7 +24,7 @@
2424
*/
2525
@property (nonatomic, readonly) NSTimeInterval deltaTime;
2626

27-
- (instancetype)initWithDisplayLink:(DCDDisplayLink *)displayLink NS_DESIGNATED_INITIALIZER;
27+
- (instancetype)initWithDisplayLink:(CADisplayLink *)displayLink NS_DESIGNATED_INITIALIZER;
2828

2929
@end
3030

React/Base/RCTFrameUpdate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#import "DCDDisplayLink.h"
8+
#import <QuartzCore/CADisplayLink.h>
99

1010
#import "RCTFrameUpdate.h"
1111

@@ -15,7 +15,7 @@ @implementation RCTFrameUpdate
1515

1616
RCT_NOT_IMPLEMENTED(- (instancetype)init)
1717

18-
- (instancetype)initWithDisplayLink:(DCDDisplayLink *)displayLink
18+
- (instancetype)initWithDisplayLink:(CADisplayLink *)displayLink
1919
{
2020
if ((self = [super init])) {
2121
_timestamp = displayLink.timestamp;

0 commit comments

Comments
 (0)