@@ -290,7 +290,7 @@ impl CanvasRenderingContext2D {
290290}
291291
292292/* Raf */
293- #[ cfg( any( target_os = "android" , target_os = "ios" , target_os = "visionos" ) ) ]
293+ #[ cfg( any( target_os = "android" , target_os = "ios" , target_os = "visionos" , target_os = "tvos" ) ) ]
294294#[ no_mangle]
295295pub extern "C" fn canvas_native_raf_create (
296296 callback : isize ,
@@ -305,7 +305,7 @@ pub extern "C" fn canvas_native_raf_create(
305305 ) ) ) ) ) )
306306}
307307
308- #[ cfg( any( target_os = "android" , target_os = "ios" , target_os = "visionos" ) ) ]
308+ #[ cfg( any( target_os = "android" , target_os = "ios" , target_os = "visionos" , target_os = "tvos" ) ) ]
309309#[ no_mangle]
310310pub extern "C" fn canvas_native_raf_release ( value : * mut crate :: Raf ) {
311311 if value. is_null ( ) {
@@ -319,7 +319,7 @@ pub extern "C" fn canvas_native_raf_release(value: *mut crate::Raf) {
319319 }
320320}
321321
322- #[ cfg( any( target_os = "android" , target_os = "ios" , target_os = "visionos" ) ) ]
322+ #[ cfg( any( target_os = "android" , target_os = "ios" , target_os = "visionos" , target_os = "tvos" ) ) ]
323323#[ no_mangle]
324324pub extern "C" fn canvas_native_raf_start ( raf : * mut crate :: Raf ) {
325325 if raf. is_null ( ) {
@@ -329,7 +329,7 @@ pub extern "C" fn canvas_native_raf_start(raf: *mut crate::Raf) {
329329 raf. 0 . start ( ) ;
330330}
331331
332- #[ cfg( any( target_os = "android" , target_os = "ios" , target_os = "visionos" ) ) ]
332+ #[ cfg( any( target_os = "android" , target_os = "ios" , target_os = "visionos" , target_os = "tvos" ) ) ]
333333#[ no_mangle]
334334pub extern "C" fn canvas_native_raf_stop ( raf : * mut crate :: Raf ) {
335335 if raf. is_null ( ) {
@@ -339,7 +339,7 @@ pub extern "C" fn canvas_native_raf_stop(raf: *mut crate::Raf) {
339339 raf. 0 . stop ( )
340340}
341341
342- #[ cfg( any( target_os = "android" , target_os = "ios" , target_os = "visionos" ) ) ]
342+ #[ cfg( any( target_os = "android" , target_os = "ios" , target_os = "visionos" , target_os = "tvos" ) ) ]
343343#[ no_mangle]
344344pub extern "C" fn canvas_native_raf_get_started ( raf : * const crate :: Raf ) -> bool {
345345 if raf. is_null ( ) {
@@ -349,7 +349,7 @@ pub extern "C" fn canvas_native_raf_get_started(raf: *const crate::Raf) -> bool
349349 raf. 0 . started ( )
350350}
351351
352- #[ cfg( any( target_os = "android" , target_os = "ios" , target_os = "visionos" ) ) ]
352+ #[ cfg( any( target_os = "android" , target_os = "ios" , target_os = "visionos" , target_os = "tvos" ) ) ]
353353#[ no_mangle]
354354pub extern "C" fn canvas_native_raf_stop_and_clear ( raf : * mut crate :: Raf , timeout_ms : u64 ) {
355355 if raf. is_null ( ) {
@@ -361,7 +361,7 @@ pub extern "C" fn canvas_native_raf_stop_and_clear(raf: *mut crate::Raf, timeout
361361 raf. 0 . clear_callback ( ) ;
362362}
363363
364- #[ cfg( any( target_os = "android" , target_os = "ios" , target_os = "visionos" ) ) ]
364+ #[ cfg( any( target_os = "android" , target_os = "ios" , target_os = "visionos" , target_os = "tvos" ) ) ]
365365#[ no_mangle]
366366pub extern "C" fn canvas_native_raf_clear_callback ( raf : * mut crate :: Raf ) {
367367 if raf. is_null ( ) {
0 commit comments