feat: Use JSI's ArrayBuffer instead of TypedArray (#2408)
				
					
				
			* feat: Use JSI's `ArrayBuffer` instead of `TypedArray` * fix: Fix move memory * feat: Implement iOS * Format * Update JSIJNIConversion.cpp * fix: Fix Android `toArrayBuffer` and other * Catch FP call errors * Update return type * Use `CPU_READ_OFTEN` flag as well * CPU flag * Run destructors under `jni::ThreadScope` * Update FrameProcessorPluginHostObject.cpp * fix: Fix `toArrayBuffer()` crash * Update Frame.ts
This commit is contained in:
		| @@ -10,7 +10,6 @@ | ||||
| #import <Foundation/Foundation.h> | ||||
| #import <jsi/jsi.h> | ||||
|  | ||||
| #import "../../cpp/JSITypedArray.h" | ||||
| #import "FrameHostObject.h" | ||||
| #import "FrameProcessor.h" | ||||
| #import "FrameProcessorPluginHostObject.h" | ||||
| @@ -55,10 +54,7 @@ VisionCameraProxy::VisionCameraProxy(jsi::Runtime& runtime, std::shared_ptr<reac | ||||
| } | ||||
|  | ||||
| VisionCameraProxy::~VisionCameraProxy() { | ||||
|   NSLog(@"VisionCameraProxy: Destroying context..."); | ||||
|   // Destroy ArrayBuffer cache for both the JS and the Worklet Runtime. | ||||
|   vision::invalidateArrayBufferCache(*_workletContext->getJsRuntime()); | ||||
|   vision::invalidateArrayBufferCache(_workletContext->getWorkletRuntime()); | ||||
|   NSLog(@"VisionCameraProxy: Destroying VisionCameraProxy..."); | ||||
| } | ||||
|  | ||||
| std::vector<jsi::PropNameID> VisionCameraProxy::getPropertyNames(jsi::Runtime& runtime) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user