summaryrefslogtreecommitdiff
path: root/tests/cocoa/display.m
blob: 0b2d9d803038207f08908f6ff32feebb1846bfda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#import <AppKit/AppKit.h>
#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];
}