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

Conversation

@yjbanov
Copy link
Contributor

@yjbanov yjbanov commented Dec 8, 2021

@flutter-dashboard flutter-dashboard bot added the platform-web Code specifically for the web engine label Dec 8, 2021
late ui.VoidCallback callback;
///
/// If this is null, the alarm goes off without calling the callback. Set the
/// callback to null of the callback is a closure holding onto expensive

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: /// callback to null -if- the callback is a closure holding onto expensive

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


_cachedWebDecoder = webDecoder;

// Expire the decoder if it not used for several seconds. If the image is

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: // Expire the decoder if -it's- not used for several seconds. If the image is

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@override
late int repetitionCount;

/// Whether this decoded has been disposed of.
Copy link

@mat100payette mat100payette Dec 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: /// Whether this -decoder- has been disposed of.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

..width = width
..height = height;
final html.CanvasRenderingContext2D ctx = canvas.context2D;
drawVideoFrame(ctx, videoFrame, 0, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, you can do:

ctx.drawImage(videoFrame, 0, 0);

but you probably have to make VideoFrame implements CanvasImageSource.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Done.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Web] Gridview with images has significant memory leak

3 participants