From 3640e273241b90e9db6f97cc7d0f806b198bbc2d Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Tue, 17 Oct 2023 18:22:24 +0800 Subject: [PATCH] remove superseded resize method call handler remove superseded resize method call handler --- .../app/polyvox/filament/PolyvoxFilamentPlugin.kt | 9 --------- ios/Classes/SwiftPolyvoxFilamentPlugin.swift | 11 ----------- macos/Classes/SwiftPolyvoxFilamentPlugin.swift | 5 ----- 3 files changed, 25 deletions(-) diff --git a/android/src/main/kotlin/app/polyvox/filament/PolyvoxFilamentPlugin.kt b/android/src/main/kotlin/app/polyvox/filament/PolyvoxFilamentPlugin.kt index dc958e4a..3b205445 100644 --- a/android/src/main/kotlin/app/polyvox/filament/PolyvoxFilamentPlugin.kt +++ b/android/src/main/kotlin/app/polyvox/filament/PolyvoxFilamentPlugin.kt @@ -203,15 +203,6 @@ class PolyvoxFilamentPlugin: FlutterPlugin, MethodCallHandler, ActivityAware, Lo _surfaceTextureEntry = null result.success(true) } - "resize" -> { - val args = call.arguments as List - val width = args[0] as Int - val height = args[1] as Int - val scale = args[2] as Double - _surfaceTexture!!.setDefaultBufferSize(width, height) - Log.i(TAG, "Resized to ${args[0]}x${args[1]}") - result.success(_surfaceTexture) - } else -> { result.notImplemented() } diff --git a/ios/Classes/SwiftPolyvoxFilamentPlugin.swift b/ios/Classes/SwiftPolyvoxFilamentPlugin.swift index 43c0324b..ef7e7218 100644 --- a/ios/Classes/SwiftPolyvoxFilamentPlugin.swift +++ b/ios/Classes/SwiftPolyvoxFilamentPlugin.swift @@ -188,17 +188,6 @@ public class SwiftPolyvoxFilamentPlugin: NSObject, FlutterPlugin, FlutterTexture self.flutterTextureId = nil self.pixelBuffer = nil result(true) - case "resize": - let args = call.arguments as! [Any] - let width = UInt32(args[0] as! Int64) - let height = UInt32(args[1] as! Int64) - if(self.flutterTextureId != nil) { - self.registry.unregisterTexture(self.flutterTextureId!) - } - createPixelBuffer(width: Int(width), height:Int(height)) - var pixelBufferTextureId = unsafeBitCast(pixelBuffer!, to: UnsafeRawPointer.self) - print("Resized to \(args[0])x\(args[1])") - result(self.flutterTextureId); case "dummy": ios_dummy() ios_dummy_ffi() diff --git a/macos/Classes/SwiftPolyvoxFilamentPlugin.swift b/macos/Classes/SwiftPolyvoxFilamentPlugin.swift index cd83aabd..9fd0bd2f 100644 --- a/macos/Classes/SwiftPolyvoxFilamentPlugin.swift +++ b/macos/Classes/SwiftPolyvoxFilamentPlugin.swift @@ -163,11 +163,6 @@ public class SwiftPolyvoxFilamentPlugin: NSObject, FlutterPlugin, FlutterTexture self.pixelBuffer = nil self.metalTexture = nil result(true) - case "resize": - let args = call.arguments as! [Any] - let width = UInt32(args[0] as! Int64) - let height = UInt32(args[1] as! Int64) - result(FlutterMethodNotImplemented) default: result(FlutterMethodNotImplemented) }