diff --git a/thermion_flutter/thermion_flutter_platform_interface/lib/thermion_flutter_platform_interface.dart b/thermion_flutter/thermion_flutter_platform_interface/lib/thermion_flutter_platform_interface.dart index 6094b8b5..09f246b0 100644 --- a/thermion_flutter/thermion_flutter_platform_interface/lib/thermion_flutter_platform_interface.dart +++ b/thermion_flutter/thermion_flutter_platform_interface/lib/thermion_flutter_platform_interface.dart @@ -4,7 +4,6 @@ import 'package:thermion_dart/thermion_dart.dart' as t; import 'package:plugin_platform_interface/plugin_platform_interface.dart'; import 'package:thermion_dart/thermion_dart.dart'; import 'thermion_flutter_texture.dart'; -import 'thermion_flutter_window.dart'; class ThermionFlutterOptions { final String? uberarchivePath; @@ -13,6 +12,9 @@ class ThermionFlutterOptions { const ThermionFlutterOptions.empty() : uberarchivePath = null; } +typedef PlatformTextureDescriptor = ( + {int flutterTextureId, int hardwareId, int? windowHandle}) ; + abstract class ThermionFlutterPlatform extends PlatformInterface { ThermionFlutterPlatform() : super(token: _token); @@ -32,13 +34,21 @@ abstract class ThermionFlutterPlatform extends PlatformInterface { Future createViewer( {covariant ThermionFlutterOptions? options}); + /// + /// Creates a raw rendering surface. + /// + /// This is internal; unless you are [thermion_*] package developer, don't + /// call this yourself. May not be supported on all platforms. + /// + Future createTexture(int width, int height); + /// /// Create a rendering surface and binds to the given [View] /// /// This is internal; unless you are [thermion_*] package developer, don't /// call this yourself. May not be supported on all platforms. /// - Future createTexture( + Future createTextureAndBindToView( t.View view, int width, int height); /// @@ -46,8 +56,7 @@ abstract class ThermionFlutterPlatform extends PlatformInterface { /// /// Future resizeTexture( - ThermionFlutterTexture texture, t.View view, - int width, int height); + ThermionFlutterTexture texture, t.View view, int width, int height); /// /// @@ -58,15 +67,4 @@ abstract class ThermionFlutterPlatform extends PlatformInterface { /// /// Future markTextureFrameAvailable(ThermionFlutterTexture texture); - - /// - /// Create a rendering window. - /// - /// This is internal; unless you are [thermion_*] package developer, don't - /// call this yourself. May not be supported on all platforms. - /// - Future createWindow( - int width, int height, int offsetLeft, int offsetTop); - - }