DescriptionMinor clean up in transferToImageBitmap API
The transferToImageBitmap is an API in OffscreenCanvas. This API could
throw exception in certain cases, which means that the
OffscreenCanvas::transferToImageBitmap() method has a ExceptionState&
parameter.
In our current implementation, we do all the exception check in the above
method. However, we still pass the ExceptionState& parameter to the
CanvasRenderingContext::transferToImageBitmap() method, and this method
is overriden by OffscreenCanvasRenderingContext2D, WebGLRenderingContext,
and WebGL2RenderingContext. So this method in all these sub-classes also
take a ExceptionState& parameter but do nothing with it. We should not
need to pass this parameter to CanvasRenderingContext::transferToImageBitmap.
TBR=kbr@chromium.org, zmo@chromium.org
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel
Committed: https://crrev.com/f92c285443e7186ad66ef8a77ae6a73ea55240da
Cr-Commit-Position: refs/heads/master@{#427188}
Patch Set 1 #Messages
Total messages: 18 (11 generated)
|