You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[video_player] Use CADisplayLink on macOS 14.0+ (#9533)
Marks the CVDisplayLink-based implementation that was previously used on macOS in all cases with deprecation suppressions, and switches macOS 14+ to share the CADisplayLink-based implementation that is currently used for iOS.
Fixesflutter/flutter#171391
## Pre-Review Checklist
[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
Copy file name to clipboardExpand all lines: packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/FVPCADisplayLink.m
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,9 @@
7
7
#import<Foundation/Foundation.h>
8
8
#import<QuartzCore/QuartzCore.h>
9
9
10
-
/// A proxy object to act as a CADisplayLink target, to avoid retain loops, since FVPDisplayLink
10
+
/// A proxy object to act as a CADisplayLink target, to avoid retain loops, since FVPCADisplayLink
11
11
/// owns its CADisplayLink, but CADisplayLink retains its target.
Copy file name to clipboardExpand all lines: packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/FVPTextureBasedVideoPlayer.m
Copy file name to clipboardExpand all lines: packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/FVPVideoPlayerPlugin.m
Copy file name to clipboardExpand all lines: packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/include/video_player_avfoundation/FVPDisplayLink.h
+23-1Lines changed: 23 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
#endif
12
12
13
13
// A cross-platform display link abstraction.
14
-
@interfaceFVPDisplayLink: NSObject
14
+
@protocolFVPDisplayLink<NSObject>
15
15
16
16
/// Whether the display link is currently running (i.e., firing events).
17
17
///
@@ -21,6 +21,12 @@
21
21
/// The time interval between screen refresh updates.
Copy file name to clipboardExpand all lines: packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/include/video_player_avfoundation/FVPFrameUpdater.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ NS_ASSUME_NONNULL_BEGIN
20
20
/// The Flutter texture registry used to notify about new frames.
Copy file name to clipboardExpand all lines: packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/include/video_player_avfoundation/FVPTextureBasedVideoPlayer.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
18
18
/// display link, HTTP headers, AV factory, and registrar.
0 commit comments