Skip to content

Conversation

annevk
Copy link
Member

@annevk annevk commented Mar 6, 2025

And modernize its description while here.

Fixes #11101.


/canvas.html ( diff )

And modernize its description while here.

Fixes #11101.
@annevk annevk requested review from a team and domenic March 6, 2025 11:27
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

LGTM with nit

data-x="offscreencanvas-context-mode">context mode</span> is <span
data-x="offscreencanvas-context-2d">2d</span> and the rendering context's <span>output
<li><p>If <span>this</span>'s <span data-x="offscreencanvas-context-mode">context mode</span> is
<span data-x="offscreencanvas-context-2d">2d</span> and the rendering context's <span>output
Copy link
Member

Choose a reason for hiding this comment

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

I wish I could figure out how to get to "output bitmap" (i.e. a better version of "the rendering context"), but there's nothing obvious, so probably best to leave it as-is for now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, it's wild that rendering context is not an explicit concept member to this day.

source Outdated

<li><p>Let <var>result</var> be a new promise object.</p></li>

<li><p>Let <var>offscreenCanvas</var> be <span>this</span>.</p></li>
Copy link
Member

Choose a reason for hiding this comment

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

I think it's OK to close over "this" in in-parallel steps. (At least, I've done so a number of times.)

Copy link
Member Author

Choose a reason for hiding this comment

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

Interesting. I can make this change. I also filed #11110.

@annevk annevk merged commit 671faa8 into main Mar 7, 2025
2 checks passed
@annevk annevk deleted the annevk/coverttoblob branch March 7, 2025 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

OffscreenCanvas convertToBlob(options) has copy paste errors

2 participants