DescriptionFix failing transferToImageBitmap layout tests and commit pixel test on Mac
Right now these two tests:
fast/canvas/webgl/offscreenCanvas-transferToImageBitmap.html
fast/canvas/webgl/offscreenCanvas-transferToImageBitmap-in-worker.html
are not working properly on Mac if we drag them to the browser. And the
reason is that DrawingBuffer()'s transferToStaticImage() returns a
StaticBitmapImage that is always black because the WebGLImageChromium
flag is enabled.
This CL disable this flag when creating a DrawingBuffer() inside the
WebGLRenderingContextBase's constructor, if the creation is requested
by a offscreenCanvas.
This change will also fix the failure of gpu pixel test for commit() on
Mac because commit() method depends on DrawingBuffer()'s transferToStaticImage()
as well.
Moreover, since the layout test doesn't really compare the composited
result, we should probably turn the above two layout tests into pixel
tests.
BUG=649668
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/3ca72b27d628adf45c298f313869f7b20a7e83aa
Cr-Commit-Position: refs/heads/master@{#421181}
Patch Set 1 #Patch Set 2 : try set to true, just for debugging, do not commit this PS #Patch Set 3 : hack, do not commit this PS #Patch Set 4 : hack #Patch Set 5 : pass an extra enum parameter #Patch Set 6 : mark pixel test as failure on Mac #Patch Set 7 : increment revision number #Patch Set 8 : fix typo #Patch Set 9 : fix compile error in unit tests #Patch Set 10 : remove transferToImageBitmap layout test, add them as pixel test #Patch Set 11 : fix typo in expectation #
Total comments: 5
Patch Set 12 : remove es3 tests #
Total comments: 1
Patch Set 13 : put a TODO #Patch Set 14 : rebase #Messages
Total messages: 24 (14 generated)
|