From 5ef6ca21ab9e1cf4f69254234d190a634b777d52 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Wed, 14 Oct 2026 09:38:31 +0300 Subject: Remove deprecated Cocoa OpenGL and private compatibility APIs --- tests/cocoa/display.m | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/cocoa/display.m (limited to 'tests/cocoa/display.m') diff --git a/tests/cocoa/display.m b/tests/cocoa/display.m new file mode 100644 index 0000000..0b2d9d8 --- /dev/null +++ b/tests/cocoa/display.m @@ -0,0 +1,13 @@ +#import +#include "common/private_native.h" + +@interface NSView (YaslTestDisplayLink) +- (void)displayLinkFired:(id)link; +@end + +/* Exercise the native CPU presenter without depending on the host's cadence. */ +void yasl_test_frame_tick(struct yasl_surface *surface) +{ + NSWindow *window = (NSWindow *)yasl_private_surface_get_native_handle(surface); + [window.contentView displayLinkFired:nil]; +} -- cgit v1.2.3