From 86378d918003ea1d7ea5692ccca53b6b7fc1ac59 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Fri, 13 Mar 2020 18:55:58 -0700 Subject: [PATCH] Document texture registry threading requirements. (flutter/engine#17149) --- .../darwin/common/framework/Headers/FlutterTexture.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/shell/platform/darwin/common/framework/Headers/FlutterTexture.h b/engine/src/flutter/shell/platform/darwin/common/framework/Headers/FlutterTexture.h index cfda1e2df8..962972025e 100644 --- a/engine/src/flutter/shell/platform/darwin/common/framework/Headers/FlutterTexture.h +++ b/engine/src/flutter/shell/platform/darwin/common/framework/Headers/FlutterTexture.h @@ -38,7 +38,8 @@ FLUTTER_EXPORT @protocol FlutterTextureRegistry /** * 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*)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:`. */