← Back to release summary

The ImageBitmap rendering context for <offscreenCanvas>

Category
Graphics
Type
New or changed feature
Status
Enabled by default (Chrome 76)
Intent stage
Prepare to ship

Summary

We are adding ImageBitmapRendererContext as a valid context for OffscreenCanvas. ImageBitmapRenderingContext allows direct transfer of an ImageBitmap to the canvas surface. This is particularly important as a way to render an ImageBitmap to a Canvas from a Worker (without transferring the ImageBitmap to the main thread). This is also currently the spec-defined way to render WebGPU content to the screen.

Motivation

We want to be able to move away from CPU to GPU the operations involving ImageBitmap rendering context. This is also currently the spec-defined way to render WebGPU content to the screen.

Standards & signals

Docs: https://html.spec.whatwg.org/#the-imagebitmap-rendering-context https://html.spec.whatwg.org/#the-offscreencanvas-interface

Explainers: https://github.com/whatwg/html/pull/4455

View on chromestatus.com