未验证 提交 cedddb70 编写于 作者: C Chinmay Garde 提交者: GitHub

Document texture registry threading requirements. (#17149)

上级 1ff81bc1
......@@ -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;
/**
......@@ -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:`.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册