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

Issue 1990063004: Move bindToCurrentThread out to the creators of WebGL contexts. (Closed)

Created:
4 years, 7 months ago by danakj
Modified:
4 years, 7 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, jam, haraken, blink-reviews, dglazkov+blink, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, blink-reviews-api_chromium.org, jochen+watch_chromium.org, piman, no sievers, xidachen
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move bindToCurrentThread out to the creators of WebGL contexts. The ContextProvider::BindToCurrentThread method is going away, with the ContextProvider being bound to whatever thread it is created on and deferred creation via helper Factory classes. The WebGL contexts currently optionally BindToCurrentThread when the context is created. Instead, move it to the caller that creates the provider. In the future the WebGraphicsContext3DProvider will hold the ContextProvider::Factory, and when bindToCurrentThread is called it will use the Factory to instantiate the real ContextProvider. In order to keep this optional, just have the creator of the context always call WebGraphicsContext3DProvider::bindToCurrentThread. R=kbr@chromium.org TBR=pfeldman BUG=487471 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/f07993965cc4250d01226f5260736608957e91d8 Cr-Commit-Position: refs/heads/master@{#394877}

Patch Set 1 #

Patch Set 2 : bindwebgl: . #

Total comments: 5

Patch Set 3 : bindwebgl: . #

Total comments: 1

Patch Set 4 : bindwebgl: . #

Patch Set 5 : bindwebgl: . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -71 lines) Patch
M components/test_runner/test_plugin.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 3 chunks +1 line, -14 lines 0 comments Download
M content/renderer/webgraphicscontext3d_provider_impl.h View 2 chunks +1 line, -2 lines 0 comments Download
M content/renderer/webgraphicscontext3d_provider_impl.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 2 chunks +34 lines, -39 lines 0 comments Download
M third_party/WebKit/public/platform/Platform.h View 2 chunks +1 line, -6 lines 0 comments Download

Messages

Total messages: 28 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1990063004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1990063004/1
4 years, 7 months ago (2016-05-19 00:49:35 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1990063004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1990063004/20001
4 years, 7 months ago (2016-05-19 01:00:25 UTC) #5
danakj
https://codereview.chromium.org/1990063004/diff/20001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/1990063004/diff/20001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode530 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:530: errorString.insert("bindToCurrentThread failed: ", 0); This string was inserted if ...
4 years, 7 months ago (2016-05-19 01:06:59 UTC) #6
danakj
+piman for content/ +chrishtr for public/ +pfeldman for test_runner (will TBR)
4 years, 7 months ago (2016-05-19 01:07:29 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1990063004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1990063004/40001
4 years, 7 months ago (2016-05-19 01:08:26 UTC) #11
piman
lgtm
4 years, 7 months ago (2016-05-19 01:45:35 UTC) #12
Ken Russell (switch to Gerrit)
lgtm
4 years, 7 months ago (2016-05-19 02:01:30 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/216314)
4 years, 7 months ago (2016-05-19 03:30:47 UTC) #15
danakj
https://codereview.chromium.org/1990063004/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/1990063004/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode583 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:583: if (!contextProvider->bindToCurrentThread() || shouldFailContextCreationForTesting) { Oh, slight lie here. ...
4 years, 7 months ago (2016-05-19 18:44:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1990063004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1990063004/80001
4 years, 7 months ago (2016-05-19 19:01:46 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/232226)
4 years, 7 months ago (2016-05-19 20:12:37 UTC) #21
danakj
On 2016/05/19 20:12:37, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 7 months ago (2016-05-19 20:28:48 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1990063004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1990063004/80001
4 years, 7 months ago (2016-05-19 20:29:26 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-19 21:44:29 UTC) #26
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 21:45:57 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f07993965cc4250d01226f5260736608957e91d8
Cr-Commit-Position: refs/heads/master@{#394877}

Powered by Google App Engine
This is Rietveld 408576698