[Bug 27513] Clarify the behavior of Window.createImageBitmap(HTMLCanvasElement) for WebGL

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27513

--- Comment #3 from Dongseong Hwang <dongseong.hwang@intel.com> ---
@kbr, thank you for explaining.

WebGL spec defines how readPixels, toDataURL, texImage2D and drawImage work. We
made consensus that ImageBitmap should behave like them. It means ImageBitmap
should copy the drawing buffer (i.e. back buffer). It might be good for WebGL
spec to mention ImageBitmap in below sentence.

https://www.khronos.org/registry/webgl/specs/latest/1.0/
"""
This default behavior can be changed by setting the preserveDrawingBuffer
attribute of the WebGLContextAttributes object. If this flag is true, the
contents of the drawing buffer shall be preserved until the author either
clears or overwrites them. If this flag is false, attempting to perform
operations using this context as a source image after the rendering function
has returned can lead to undefined behavior. This includes readPixels or
toDataURL calls, or using this context as the source image of another context's
texImage2D or drawImage call.
"""

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 8 December 2014 07:47:22 UTC