Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Issue 2365653005: Fix failing transferToImageBitmap layout tests and commit pixel test on Mac (Closed)

Created:
4 years, 3 months ago by xidachen
Modified:
4 years ago
CC:
chromium-reviews, krit, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, pdr+graphicswatchlist_chromium.org, jbroman, haraken, Rik, f(malita), blink-reviews, piman+watch_chromium.org, danakj+watch_chromium.org, ajuma+watch_chromium.org, Stephen Chennney, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -172 lines) Patch
A + content/test/data/gpu/pixel_offscreenCanvas_transferToImageBitmap_main.html View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +21 lines, -6 lines 0 comments Download
A + content/test/data/gpu/pixel_offscreenCanvas_transferToImageBitmap_worker.html View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +31 lines, -12 lines 0 comments Download
M content/test/gpu/gpu_tests/pixel_expectations.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -0 lines 0 comments Download
M content/test/gpu/page_sets/pixel_tests.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +57 lines, -36 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/canvas/webgl/offscreenCanvas-transferToImageBitmap.html View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -35 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/canvas/webgl/offscreenCanvas-transferToImageBitmap-expected.html View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -7 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/canvas/webgl/offscreenCanvas-transferToImageBitmap-in-worker.html View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -51 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/canvas/webgl/offscreenCanvas-transferToImageBitmap-in-worker-expected.html View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +10 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h View 1 2 3 4 4 chunks +17 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 2 3 4 10 chunks +16 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTestHelpers.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 24 (14 generated)
xidachen
Ken, could you take a look what did wrong here? The current approach doesn't work. ...
4 years, 3 months ago (2016-09-23 20:18:31 UTC) #4
Ken Russell (switch to Gerrit)
On 2016/09/23 20:18:31, xidachen wrote: > Ken, could you take a look what did wrong ...
4 years, 2 months ago (2016-09-25 02:34:41 UTC) #5
xidachen
I have tested locally on both Linux and Mac, PS#10 works fine. The bots also ...
4 years, 2 months ago (2016-09-26 15:18:07 UTC) #6
Ken Russell (switch to Gerrit)
Mostly looks good. Only one significant comment. https://codereview.chromium.org/2365653005/diff/200001/content/test/data/gpu/pixel_offscreenCanvas_transferToImageBitmap_main.html File content/test/data/gpu/pixel_offscreenCanvas_transferToImageBitmap_main.html (right): https://codereview.chromium.org/2365653005/diff/200001/content/test/data/gpu/pixel_offscreenCanvas_transferToImageBitmap_main.html#newcode11 content/test/data/gpu/pixel_offscreenCanvas_transferToImageBitmap_main.html:11: <title>OffscreenCanvas transferToImageBitmap ...
4 years, 2 months ago (2016-09-26 18:21:47 UTC) #7
xidachen
Addressed comments. PTAL https://codereview.chromium.org/2365653005/diff/200001/content/test/gpu/page_sets/pixel_tests.py File content/test/gpu/page_sets/pixel_tests.py (right): https://codereview.chromium.org/2365653005/diff/200001/content/test/gpu/page_sets/pixel_tests.py#newcode194 content/test/gpu/page_sets/pixel_tests.py:194: expectations=expectations)) On 2016/09/26 18:21:47, Ken Russell ...
4 years, 2 months ago (2016-09-26 19:24:03 UTC) #8
Justin Novosad
lgtm for the tests
4 years, 2 months ago (2016-09-26 20:20:37 UTC) #9
Ken Russell (switch to Gerrit)
LGTM with one caveat. Not necessary to block this CL on fixing it. https://codereview.chromium.org/2365653005/diff/220001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File ...
4 years, 2 months ago (2016-09-26 21:47:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2365653005/260001
4 years, 2 months ago (2016-09-27 11:40:29 UTC) #20
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 2 months ago (2016-09-27 12:31:19 UTC) #22
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 12:32:47 UTC) #24
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/3ca72b27d628adf45c298f313869f7b20a7e83aa
Cr-Commit-Position: refs/heads/master@{#421181}

Powered by Google App Engine
This is Rietveld 408576698