Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ FLUTTER_EXPORT
@protocol FlutterTextureRegistry <NSObject>
/**
* Registers a `FlutterTexture` for usage in Flutter and returns an id that can be used to reference
* that texture when calling into Flutter with channels.
* that texture when calling into Flutter with channels. Textures must be registered on the
* platform thread.
*/
- (int64_t)registerTexture:(NSObject<FlutterTexture>*)texture;
/**
Expand All @@ -48,7 +49,8 @@ FLUTTER_EXPORT
*/
- (void)textureFrameAvailable:(int64_t)textureId;
/**
* Unregisters a `FlutterTexture` that has previously regeistered with `registerTexture:`.
* Unregisters a `FlutterTexture` that has previously regeistered with `registerTexture:`. Textures
* must be unregistered on the the platform thread.
*
* @param textureId The result that was previously returned from `registerTexture:`.
*/
Expand Down