Skip to content

Commit cedddb7

Browse files
authored
Document texture registry threading requirements. (flutter#17149)
1 parent 1ff81bc commit cedddb7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

shell/platform/darwin/common/framework/Headers/FlutterTexture.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ FLUTTER_EXPORT
3838
@protocol FlutterTextureRegistry <NSObject>
3939
/**
4040
* Registers a `FlutterTexture` for usage in Flutter and returns an id that can be used to reference
41-
* that texture when calling into Flutter with channels.
41+
* that texture when calling into Flutter with channels. Textures must be registered on the
42+
* platform thread.
4243
*/
4344
- (int64_t)registerTexture:(NSObject<FlutterTexture>*)texture;
4445
/**
@@ -48,7 +49,8 @@ FLUTTER_EXPORT
4849
*/
4950
- (void)textureFrameAvailable:(int64_t)textureId;
5051
/**
51-
* Unregisters a `FlutterTexture` that has previously regeistered with `registerTexture:`.
52+
* Unregisters a `FlutterTexture` that has previously regeistered with `registerTexture:`. Textures
53+
* must be unregistered on the the platform thread.
5254
*
5355
* @param textureId The result that was previously returned from `registerTexture:`.
5456
*/

0 commit comments

Comments
 (0)