Skip to content

s/scratch bitmap/output bitmap/ to fix broken link #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions css-paint-api/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ urlPrefix: https://heycam.github.io/webidl/; type: dfn;
url: throw; text: thrown
urlPrefix: https://html.spec.whatwg.org/multipage/scripting.html; type: dfn;
text: reset the rendering context to its default state
text: scratch bitmap
text: output bitmap
text: set bitmap dimensions
url: concept-canvas-alpha; text: alpha
urlPrefix: http://www.ecma-international.org/ecma-262/6.0/#sec-; type: dfn;
Expand Down Expand Up @@ -258,11 +258,11 @@ Note: The {{PaintRenderingContext2D}} implements a subset of the {{CanvasRenderi
Specifically it doesn't implement the {{CanvasHitRegion}}, {{CanvasImageData}},
{{CanvasUserInterface}}, {{CanvasText}} or {{CanvasTextDrawingStyles}} APIs.

A {{PaintRenderingContext2D}} object has a <a>scratch bitmap</a>. This is initialised when the
object is created. The size of the <a>scratch bitmap</a> is the size of the fragment it is
A {{PaintRenderingContext2D}} object has a <a>output bitmap</a>. This is initialised when the
object is created. The size of the <a>output bitmap</a> is the size of the fragment it is
rendering.

The size of the <a>scratch bitmap</a> does not necessarily represent the size of the actual bitmap
The size of the <a>output bitmap</a> does not necessarily represent the size of the actual bitmap
that the user agent will use internally or during rendering. For example, if the visual viewport is
zoomed the user agent may internally use bitmaps which correspond to the number of device pixels in
the coordinate space, so that the resulting rendering is of high quality.
Expand All @@ -271,19 +271,19 @@ The {{PaintRenderingContext2D}} object should have its <a>alpha</a> flag set to
rendering context is initially fully transparent.

Additionally the user agent may record the sequence of drawing operations which have been applied to
the <a>scratch bitmap</a> such that the user agent can subsequently draw onto a device bitmap at the
correct resolution. This also allows user agents to re-use the same output of the <a>scratch
the <a>output bitmap</a> such that the user agent can subsequently draw onto a device bitmap at the
correct resolution. This also allows user agents to re-use the same output of the <a>output
bitmap</a> repeatably while the visual viewport is being zoomed for example.

When the user agent is to <dfn>create a PaintRenderingContext2D object</dfn> for a given |width|,
|height| it <em>must</em> run the following steps:
1. Create a new {{PaintRenderingContext2D}}.
2. <a>Set bitmap dimensions</a> for the context's <a>scratch bitmap</a> to |width| and |height|.
2. <a>Set bitmap dimensions</a> for the context's <a>output bitmap</a> to |width| and |height|.
3. Return the new {{PaintRenderingContext2D}}.

Note: The initial state of the rendering context is set inside the <a>set bitmap dimensions</a>
algorithm, as it invokes <a>reset the rendering context to its default state</a> and clears the
<a>scratch bitmap</a>.
<a>output bitmap</a>.

Drawing an image {#drawing-an-image}
====================================
Expand Down