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

Issue 194593006: gpu test: fix flaky failure of Pixel.WebGLYellowTriangleContextRestore. (Closed)

Created:
6 years, 9 months ago by dshwang
Modified:
6 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, piman+watch_chromium.org, jam, darin-cc_chromium.org
Base URL:
https://git.chromium.org/chromium/src.git@canvas_hwvideo
Visibility:
Public.

Description

gpu test: fix flaky failure of Pixel.WebGLYellowTriangleContextRestore. If we prevent default for webglcontextlost event, we should not restore forcely, because it causes INVALID_OPERATION exception: "restoreContext: context not lost". BUG=349195

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -3 lines) Patch
M content/test/data/gpu/pixel_webgl_context_restore.html View 1 chunk +0 lines, -3 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
dshwang
This CL follows up https://codereview.chromium.org/188073002
6 years, 9 months ago (2014-03-11 17:28:48 UTC) #1
dshwang
https://codereview.chromium.org/194593006/diff/1/content/test/data/gpu/pixel_webgl_context_restore.html File content/test/data/gpu/pixel_webgl_context_restore.html (right): https://codereview.chromium.org/194593006/diff/1/content/test/data/gpu/pixel_webgl_context_restore.html#newcode45 content/test/data/gpu/pixel_webgl_context_restore.html:45: ev.preventDefault(); we prevent default, so we should trust "webglcontextrestored" ...
6 years, 9 months ago (2014-03-11 17:30:56 UTC) #2
Ken Russell (switch to Gerrit)
BTW, this test was reverted this morning, so I think this CL won't apply any ...
6 years, 9 months ago (2014-03-11 17:35:13 UTC) #3
bajones
Yes, the original test has been reverted but I will take this into account when ...
6 years, 9 months ago (2014-03-11 17:37:53 UTC) #4
dshwang
6 years, 9 months ago (2014-03-11 17:40:44 UTC) #5
On 2014/03/11 17:35:13, Ken Russell wrote:
> BTW, this test was reverted this morning, so I think this CL won't apply any
> more. Brandon, a couple of hints about why the test might have been flaky.
> 
>
https://codereview.chromium.org/194593006/diff/1/content/test/data/gpu/pixel_...
> File content/test/data/gpu/pixel_webgl_context_restore.html (right):
> 
>
https://codereview.chromium.org/194593006/diff/1/content/test/data/gpu/pixel_...
> content/test/data/gpu/pixel_webgl_context_restore.html:45:
ev.preventDefault();
> On 2014/03/11 17:30:57, dshwang wrote:
> > we prevent default, so we should trust "webglcontextrestored" called
> > automatically.
> 
> Sorry, the WEBGL_context_lost extension doesn't work that way. See
> http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/ .
However,
> there is still a bug in this test which I should have caught during code
review.
> The timeout should be started in the webglcontextlost event handler, because
> otherwise there's a race condition (which was the original problem with the
> test).

Ah, ok. feel free to pick up some code from this CL if needed.
I'll close this CL soon.

Powered by Google App Engine
This is Rietveld 408576698