Skip to content

Commit

Permalink
Incorporate review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ccameron-chromium committed Jan 14, 2025
1 parent 4c74124 commit 5f66b07
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -65475,8 +65475,8 @@ interface <dfn interface>Path2D</dfn> {
data-x="attr-canvas-width">width</code> and <code data-x="attr-canvas-height">height</code>
content attributes.</p></li>

<li><p>Run the <span>canvas settings output bitmap initialization algorithm</span>,
given <var>context</var> and <var>settings</var>.</li>
<li><p>Run the <span data-x="canvas-setting-init-bitmap">canvas settings output bitmap
initialization algorithm</span>, given <var>context</var> and <var>settings</var>.</li>

<li><p>Return <var>context</var>.</p></li>
</ol>
Expand Down Expand Up @@ -65689,12 +65689,9 @@ context.fillRect(100,0,50,50); // only this square remains</code></pre>
data-x="concept-canvas-color-space">color space</span> indicates the color space for the
<span>output bitmap</span>.</p>

<p>
The <dfn>canvas settings output bitmap initialization algorithm</dfn>, which is passed
<var>canvas</var> (a <code>CanvasSettings</code> object) and
<var>settings</var> (a <code>CanvasRenderingContext2DSettings</code> object), consists
of running these steps:
</p>
<p>To <dfn data-x="canvas-setting-init-bitmap">initialize a <code>CanvasSettings</code>
output bitmap</dfn>, given a <code>CanvasSettings</code> <var>context</var> and a
<code>CanvasRenderingContext2DSettings</code> <var>settings</var> execute these steps:</p>

<ol>
<li><p>Set <var>context</var>'s <span data-x="concept-canvas-alpha">alpha</span> to
Expand Down Expand Up @@ -71357,7 +71354,7 @@ interface <dfn interface>OffscreenCanvas</dfn> : <span>EventTarget</span> {
data-x="offscreencanvas-bitmap">bitmap</span> to reference a newly created bitmap of the same
dimensions and color space as the previous bitmap, and with its pixels initialized to
<span>transparent black</span>, or <span>opaque black</span> if the rendering context's <span
data-x="concept-canvas-alpha">alpha</span> flag is set to false.</p>
data-x="concept-canvas-alpha">alpha</span> is false.</p>

<p class="note">This means that if the rendering context of this <code>OffscreenCanvas</code> is
a <code>WebGLRenderingContext</code>, the value of <code
Expand Down Expand Up @@ -71448,8 +71445,8 @@ interface <dfn interface>OffscreenCanvasRenderingContext2D</dfn> {
<li><p>Set <var>context</var>'s <span>associated <code>OffscreenCanvas</code> object</span> to
<var>target</var>.</p></li>

<li><p>Run the <span>canvas settings output bitmap initialization algorithm</span>,
given <var>context</var> and <var>settings</var>.</li>
<li><p>Run the <span data-x="canvas-setting-init-bitmap">canvas settings output bitmap
initialization algorithm</span>, given <var>context</var> and <var>settings</var>.</li>

<li><p>Set <var>context</var>'s <span>output bitmap</span> to a newly
created bitmap with the dimensions specified by the <code
Expand Down

0 comments on commit 5f66b07

Please sign in to comment.