@@ -126,10 +126,6 @@ public final class FlutterEngine: FlutterPluginRegistry, @unchecked Sendable {
126
126
pluginPublications [ pluginKey]
127
127
}
128
128
129
- func onVsync( lastFrameTimeNS: UInt64 , vsyncIntervalTimeNS: UInt64 ) {
130
- engine. OnVsync ( lastFrameTimeNS, vsyncIntervalTimeNS)
131
- }
132
-
133
129
public var isImpellerEnabled : Bool {
134
130
engine. IsImpellerEnabled ( )
135
131
}
@@ -163,6 +159,45 @@ public final class FlutterEngine: FlutterPluginRegistry, @unchecked Sendable {
163
159
var messenger : FlutterDesktopMessengerRef ! {
164
160
engine. messenger ( )
165
161
}
162
+
163
+ func sendWindowMetricsEvent( _ event: FlutterWindowMetricsEvent ) {
164
+ engine. SendWindowMetricsEvent ( event)
165
+ }
166
+
167
+ func sendPointerEvent( _ event: FlutterPointerEvent ) {
168
+ engine. SendPointerEvent ( event)
169
+ }
170
+
171
+ func sendPlatformMessageResponse( handle: OpaquePointer , data: [ UInt8 ] ) {
172
+ engine. SendPlatformMessageResponse ( handle, data, data. count)
173
+ }
174
+
175
+ func registerExternalTexture( id textureID: Int64 ) -> Bool {
176
+ engine. RegisterExternalTexture ( textureID)
177
+ }
178
+
179
+ func unregisterExternalTexture( id textureID: Int64 ) -> Bool {
180
+ engine. UnregisterExternalTexture ( textureID)
181
+ }
182
+
183
+ func markExternalTextureFrameAvailable( id textureID: Int64 ) -> Bool {
184
+ engine. MarkExternalTextureFrameAvailable ( textureID)
185
+ }
186
+
187
+ func onVsync( lastFrameTimeNS: UInt64 , vsyncIntervalTimeNS: UInt64 ) {
188
+ engine. OnVsync ( lastFrameTimeNS, vsyncIntervalTimeNS)
189
+ }
190
+
191
+ func updateAccessibilityFeatures( flags: FlutterAccessibilityFeature ) {
192
+ engine. UpdateAccessibilityFeatures ( flags)
193
+ }
194
+
195
+ func updateDisplayInfo(
196
+ updateType: FlutterEngineDisplaysUpdateType ,
197
+ displays: [ FlutterEngineDisplay ]
198
+ ) {
199
+ engine. UpdateDisplayInfo ( updateType, displays, displays. count)
200
+ }
166
201
}
167
202
168
203
#endif
0 commit comments