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

Issue 703903002: [WebGL-blink] Add test function to force fail the webgl-context (Closed)

Created:
6 years, 1 month ago by sivag
Modified:
6 years, 1 month ago
CC:
blink-reviews, arv+blink, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

[Webgl-blink] Add test function to force fail the webgl-context. In order to test whether the GPU(Vendor,Renderer,Driver info) is getting fetched properly when creating the context, we need to provide a function to force fail the context on creation, which can be used by test-runner. This patch implements the forceNextWebGLContextCreationToFail. Test-runner can use this further. test-runner-cl which uses forceNextWebGLContextCreationToFail @https://codereview.chromium.org/706193003/ BUG=412440 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185272

Patch Set 1 #

Patch Set 2 : Adding Layout test code. #

Patch Set 3 : Adding layout tests. #

Patch Set 4 : Changed webgl-error-response.html #

Patch Set 5 : added test case #

Total comments: 6

Patch Set 6 : Removed the bolean argument in test function. #

Patch Set 7 : Upload layout test in seperate patch #

Total comments: 4

Patch Set 8 : Moving the test function to test section. #

Total comments: 3

Patch Set 9 : Set forcefail flag to false before dispatching context error event. #

Patch Set 10 : Remove decleration from webwidget. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -1 line) Patch
M Source/core/html/canvas/WebGLRenderingContext.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContext.cpp View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -1 line 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M public/web/WebView.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (6 generated)
sivag
@kbr, please take a look at this approach. As i can't see any direct way ...
6 years, 1 month ago (2014-11-05 18:06:13 UTC) #2
Ken Russell (switch to Gerrit)
Sorry, this isn't what I had in mind. What I'm suggesting is to add a ...
6 years, 1 month ago (2014-11-06 07:09:55 UTC) #3
sivag
ptal..
6 years, 1 month ago (2014-11-10 13:44:49 UTC) #5
Ken Russell (switch to Gerrit)
The new patch set looks good overall. A couple of comments. https://codereview.chromium.org/703903002/diff/100001/Source/core/html/canvas/WebGLRenderingContext.cpp File Source/core/html/canvas/WebGLRenderingContext.cpp (right): ...
6 years, 1 month ago (2014-11-10 19:55:28 UTC) #6
sivag
ptal.. https://codereview.chromium.org/703903002/diff/100001/Source/core/html/canvas/WebGLRenderingContext.cpp File Source/core/html/canvas/WebGLRenderingContext.cpp (right): https://codereview.chromium.org/703903002/diff/100001/Source/core/html/canvas/WebGLRenderingContext.cpp#newcode64 Source/core/html/canvas/WebGLRenderingContext.cpp:64: static bool contextShouldFail = false; On 2014/11/10 19:55:28, ...
6 years, 1 month ago (2014-11-11 12:55:15 UTC) #8
sivag
ptal..
6 years, 1 month ago (2014-11-12 18:47:51 UTC) #9
Ken Russell (switch to Gerrit)
Again looks good in general, but there's one logic bug. https://codereview.chromium.org/703903002/diff/140001/Source/core/html/canvas/WebGLRenderingContext.cpp File Source/core/html/canvas/WebGLRenderingContext.cpp (right): https://codereview.chromium.org/703903002/diff/140001/Source/core/html/canvas/WebGLRenderingContext.cpp#newcode101 ...
6 years, 1 month ago (2014-11-12 21:26:02 UTC) #10
Ken Russell (switch to Gerrit)
Also: please edit the CL description. This CL now only adds the forceNextWebGLContextCreationToFail API.
6 years, 1 month ago (2014-11-12 21:27:02 UTC) #11
tkent
lgtm. Please update the description.
6 years, 1 month ago (2014-11-13 00:25:44 UTC) #12
tkent
https://codereview.chromium.org/703903002/diff/140001/public/web/WebView.h File public/web/WebView.h (right): https://codereview.chromium.org/703903002/diff/140001/public/web/WebView.h#newcode494 public/web/WebView.h:494: virtual void forceNextWebGLContextCreationToFail() = 0; This is not for ...
6 years, 1 month ago (2014-11-13 00:27:11 UTC) #13
sivag
Description Updated. https://codereview.chromium.org/703903002/diff/140001/public/web/WebView.h File public/web/WebView.h (right): https://codereview.chromium.org/703903002/diff/140001/public/web/WebView.h#newcode494 public/web/WebView.h:494: virtual void forceNextWebGLContextCreationToFail() = 0; On 2014/11/13 ...
6 years, 1 month ago (2014-11-13 03:29:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/703903002/160001
6 years, 1 month ago (2014-11-13 03:32:56 UTC) #16
tkent
https://codereview.chromium.org/703903002/diff/160001/public/web/WebWidget.h File public/web/WebWidget.h (right): https://codereview.chromium.org/703903002/diff/160001/public/web/WebWidget.h#newcode276 public/web/WebWidget.h:276: virtual void forceNextWebGLContextCreationToFail() { } Do you need this ...
6 years, 1 month ago (2014-11-13 03:37:24 UTC) #18
sivag
@kbr ptal.. https://codereview.chromium.org/703903002/diff/140001/Source/core/html/canvas/WebGLRenderingContext.cpp File Source/core/html/canvas/WebGLRenderingContext.cpp (right): https://codereview.chromium.org/703903002/diff/140001/Source/core/html/canvas/WebGLRenderingContext.cpp#newcode101 Source/core/html/canvas/WebGLRenderingContext.cpp:101: shouldFailContextCreationForTesting = false; On 2014/11/12 21:26:02, Ken ...
6 years, 1 month ago (2014-11-13 03:40:32 UTC) #19
sivag
@tkent, kbr ptal.. https://codereview.chromium.org/703903002/diff/160001/public/web/WebWidget.h File public/web/WebWidget.h (right): https://codereview.chromium.org/703903002/diff/160001/public/web/WebWidget.h#newcode276 public/web/WebWidget.h:276: virtual void forceNextWebGLContextCreationToFail() { } On ...
6 years, 1 month ago (2014-11-13 05:26:04 UTC) #20
tkent
lgtm
6 years, 1 month ago (2014-11-13 05:51:22 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/703903002/200001
6 years, 1 month ago (2014-11-13 05:52:28 UTC) #23
commit-bot: I haz the power
6 years, 1 month ago (2014-11-13 07:18:08 UTC) #24
Message was sent while issue was closed.
Committed patchset #10 (id:200001) as 185272

Powered by Google App Engine
This is Rietveld 408576698