@@ -18,7 +18,7 @@ use log::LevelFilter;
1818// #[cfg(feature = "vulkan")]
1919use crate :: jni_compat:: org_nativescript_canvas_NSCCanvas:: { nativeCreate2dContextVulkan, nativeGetVulkanVersion, nativeContext2DSetRenderFunc, nativeContext2DClearRenderFunc} ;
2020
21- use crate :: jni_compat:: org_nativescript_canvas_NSCCanvas:: { nativeContext2DPathTest, nativeContext2DPathTestNormal, nativeContext2DRender, nativeContext2DTest, nativeContext2DTestNormal, nativeCreate2DContext, nativeCustomWithBitmapFlush, nativeInitWebGL, nativeInitWebGLNoSurface, nativeInitWebGPU, nativeMakeWebGLCurrent, nativeMakeWebGLCurrentNormal, nativeReleaseWebGL, nativeReleaseWebGLNormal, nativeResizeWebGPU, nativeUpdate2DSurface, nativeUpdate2DSurfaceNoSurface, nativeUpdate2DSurfaceNoSurfaceNormal, nativeUpdateGLNoSurface, nativeUpdateWebGLNoSurfaceNormal, nativeUpdateWebGLSurface, nativeWebGLC2DRender, nativeWriteCurrentWebGLContextToBitmap, nativeContext2DConicTest} ;
21+ use crate :: jni_compat:: org_nativescript_canvas_NSCCanvas:: { nativeContext2DPathTest, nativeContext2DPathTestNormal, nativeContext2DRender, nativeContext2DTest, nativeContext2DTestNormal, nativeCreate2DContext, nativeCustomWithBitmapFlush, nativeInitWebGL, nativeInitWebGLNoSurface, nativeInitWebGPU, nativeMakeWebGLCurrent, nativeMakeWebGLCurrentNormal, nativeRelease2DContext , nativeRelease2DContextNormal , nativeReleaseWebGL, nativeReleaseWebGLNormal, nativeResizeWebGPU, nativeUpdate2DSurface, nativeUpdate2DSurfaceNoSurface, nativeUpdate2DSurfaceNoSurfaceNormal, nativeUpdateGLNoSurface, nativeUpdateWebGLNoSurfaceNormal, nativeUpdateWebGLSurface, nativeWebGLC2DRender, nativeWriteCurrentWebGLContextToBitmap, nativeContext2DConicTest} ;
2222use crate :: jni_compat:: org_nativescript_canvas_NSCCanvasRenderingContext2D:: { nativeCreatePattern, nativeDrawAtlasWithBitmap, nativeDrawImageDxDyDwDhWithAsset, nativeDrawImageDxDyDwDhWithBitmap, nativeDrawImageDxDyWithAsset, nativeDrawImageDxDyWithBitmap, nativeDrawImageWithAsset, nativeDrawImageWithBitmap, nativeScale} ;
2323use crate :: jni_compat:: org_nativescript_canvas_NSCImageAsset:: { nativeCreateImageAsset, nativeDestroyImageAsset, nativeGetDimensions, nativeGetError, nativeLoadFromBitmap, nativeLoadFromBuffer, nativeLoadFromBytes, nativeLoadFromEncodedBuffer, nativeLoadFromEncodedBytes, nativeLoadFromPath, nativeLoadFromUrl} ;
2424use crate :: jni_compat:: org_nativescript_canvas_NSCImageBitmap:: { nativeLoadBitmapFromBuffer, nativeLoadBitmapFromBufferOptions, nativeLoadBitmapFromBufferRectOptions, nativeLoadBitmapFromBytes, nativeLoadBitmapFromBytesOptions, nativeLoadBitmapFromBytesRectOptions} ;
@@ -83,6 +83,7 @@ pub extern "system" fn JNI_OnLoad(vm: JavaVM, _reserved: *const c_void) -> jint
8383 "nativeUpdate2DSurfaceNoSurface" ,
8484 "nativeUpdateWebGLNoSurface" ,
8585 "nativeReleaseWebGL" ,
86+ "nativeRelease2DContext" ,
8687 "nativeMakeWebGLCurrent" ,
8788 "nativeWriteCurrentWebGLContextToBitmap" ,
8889 "nativeInitContextWithCustomSurface" ,
@@ -114,6 +115,7 @@ pub extern "system" fn JNI_OnLoad(vm: JavaVM, _reserved: *const c_void) -> jint
114115 "(IIJ)V" ,
115116 "(IIJ)V" ,
116117 "(J)V" ,
118+ "(J)V" ,
117119 "(J)Z" ,
118120 "(JLandroid/graphics/Bitmap;)V" ,
119121 "(IIFZIFII)J" ,
@@ -147,6 +149,7 @@ pub extern "system" fn JNI_OnLoad(vm: JavaVM, _reserved: *const c_void) -> jint
147149 "!(IIJ)V" ,
148150 "!(IIJ)V" ,
149151 "!(J)V" ,
152+ "!(J)V" ,
150153 "!(J)Z" ,
151154 "!(JLandroid/graphics/Bitmap;)V" ,
152155 "!(IIFZIFII)J" ,
@@ -183,6 +186,7 @@ pub extern "system" fn JNI_OnLoad(vm: JavaVM, _reserved: *const c_void) -> jint
183186 nativeUpdate2DSurfaceNoSurface as * mut c_void,
184187 nativeUpdateGLNoSurface as * mut c_void,
185188 nativeReleaseWebGL as * mut c_void,
189+ nativeRelease2DContext as * mut c_void,
186190 nativeMakeWebGLCurrent as * mut c_void,
187191 nativeWriteCurrentWebGLContextToBitmap as * mut c_void,
188192 nativeInitContextWithCustomSurface as * mut c_void,
@@ -206,6 +210,7 @@ pub extern "system" fn JNI_OnLoad(vm: JavaVM, _reserved: *const c_void) -> jint
206210 nativeUpdate2DSurfaceNoSurfaceNormal as * mut c_void,
207211 nativeUpdateWebGLNoSurfaceNormal as * mut c_void,
208212 nativeReleaseWebGLNormal as * mut c_void,
213+ nativeRelease2DContextNormal as * mut c_void,
209214 nativeMakeWebGLCurrentNormal as * mut c_void,
210215 nativeWriteCurrentWebGLContextToBitmap as * mut c_void,
211216 nativeInitContextWithCustomSurfaceNormal as * mut c_void,
0 commit comments