Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 18c5ca0

Browse files
committed
review comments followup
1 parent 14fdd01 commit 18c5ca0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/ui/compositing.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,13 @@ class SceneBuilder extends NativeFieldWrapperClass2 {
236236
///
237237
/// The texture is scaled to the given size and rasterized at the given offset.
238238
///
239-
/// If `freeze` is true new frames will not be consumed from the texture.
239+
/// If `freeze` is true the texture that is added to the scene will not
240+
/// be updated with new frames. `freeze` is used when resizing an embedded
241+
/// Android view: When resizing an Android view there is a short period during
242+
/// which the framework cannot tell if the newest texture frame has the
243+
/// previous or new size, to workaround this the framework "freezes" the
244+
/// texture just before resizing the Android view and unfreezes it when it is
245+
/// certain that a frame with the new size is ready.
240246
void addTexture(int textureId, { Offset offset: Offset.zero, double width: 0.0, double height: 0.0 , bool freeze: false}) {
241247
assert(offset != null, 'Offset argument was null');
242248
_addTexture(offset.dx, offset.dy, width, height, textureId, freeze);

0 commit comments

Comments
 (0)