Package io.flutter.view
Interface TextureRegistry.ImageTextureEntry
-
- All Superinterfaces:
TextureRegistry.TextureEntry
- Enclosing interface:
- TextureRegistry
public static interface TextureRegistry.ImageTextureEntry extends TextureRegistry.TextureEntry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Image
acquireLatestImage()
Retrieve the last Image pushed.long
id()
void
pushImage(Image image)
Next paint will update texture to use the contents of image.void
release()
Deregisters and releases all resources.
-
-
-
Method Detail
-
id
long id()
- Specified by:
id
in interfaceTextureRegistry.TextureEntry
- Returns:
- the identity of this ImageTextureEntry
-
release
void release()
Deregisters and releases all resources.- Specified by:
release
in interfaceTextureRegistry.TextureEntry
-
pushImage
void pushImage(Image image)
Next paint will update texture to use the contents of image.NOTE: Caller should not call Image.close() on the pushed image.
NOTE: In the case that multiple calls to PushFrame occur before the next paint only the last frame pushed will be used (dropping the missed frames).
-
acquireLatestImage
Image acquireLatestImage()
Retrieve the last Image pushed.NOTE: Caller must call Image.close() on returned image.
- Returns:
- Image or null.
-
-