The WebGLRenderingContext.commit() method pushes frames back to the original HTMLCanvasElement, if the context is not directly fixed to a specific canvas. 
 The WebGLRenderingContext.commit() method pushes frames back to the original HTMLCanvasElement, if the context is not directly fixed to a specific canvas. 
commit()
undefined.
var htmlCanvas = document.createElement('canvas'); var offscreen = htmlCanvas.transferControlToOffscreen(); var gl = offscreen.getContext('webgl'); // ... some drawing using the gl context ... // Push frames back to the original HTMLCanvasElement gl.commit();
| Specification | 
|---|
| HTML Standard  # offscreencontext-commit  | 
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
commit | 
No  | 
No  | 
44  | 
No  | 
No  | 
No  | 
No  | 
No  | 
No  | 
No  | 
No  | 
No  | 
WebGLRenderingContext
OffscreenCanvasHTMLCanvasElement.transferControlToOffscreen()
    © 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
    https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/commit