DescriptionReturn a transparent black ImageBitmap when mailbox is invalid
In Webgl's transferToImageBitmap(), we create an ImageBitmap from the
drawingBuffer's mailbox. When calling transferToImageBitmap() twice, the
mailbox is invalid in the second call. In this case, we should return
an ImageBitmap that is the same size as the drawingBuffer but should be
transparent black.
Corresponding layout test has been updated to reflect this case.
BUG=627374
CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel
Committed: https://crrev.com/cf378d00d56930dabf6c4cc4d141f9f2d3803a59
Cr-Commit-Position: refs/heads/master@{#405132}
Patch Set 1 #
Total comments: 2
Patch Set 2 : address comments #
Messages
Total messages: 16 (11 generated)
|