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

Issue 101223005: Plumbing explicit share groups through context creation (Closed)

Created:
7 years ago by bajones
Modified:
6 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org
Visibility:
Public.

Description

Plumbing explicit share groups through context creation Requires corresponding Blink changes, which is why the new interfaces are hidden behind #ifdefs. BUG=127940 R=kbr@chromium.org, piman@chromium.org, sievers@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253204

Patch Set 1 #

Total comments: 3

Patch Set 2 : Better share group management #

Total comments: 4

Patch Set 3 : Refactored to always use a ShareGroup + Rebase errata. #

Total comments: 12

Patch Set 4 : Addressed some feedback #

Patch Set 5 : Rebase + Android fixes #

Patch Set 6 : Added assert and failure if attempting to create context with a lost share group. #

Patch Set 7 : Large rebase #

Total comments: 2

Patch Set 8 : Rebase #

Total comments: 2

Patch Set 9 : Addressing feedback from sievers@ #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -72 lines) Patch
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_ipc_browsertests.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/image_transport_factory_android.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/common/gpu/client/context_provider_command_buffer_browsertest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h View 1 2 3 4 5 6 7 8 5 chunks +52 lines, -3 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 1 2 3 4 5 6 7 8 13 chunks +81 lines, -59 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 30 (0 generated)
bajones
The Blink changes will be more involved, but this side of things is reasonably straightforward, ...
7 years ago (2013-12-10 19:28:25 UTC) #1
no sievers
https://codereview.chromium.org/101223005/diff/1/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc File content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (right): https://codereview.chromium.org/101223005/diff/1/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc#newcode1219 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc:1219: if (!context->MaybeInitializeGL(NULL)) { This can't be done here but ...
7 years ago (2013-12-10 19:53:34 UTC) #2
jamesr
Are we ready to break webgl out of the share group? what context created through ...
7 years ago (2013-12-10 23:44:53 UTC) #3
bajones
On 2013/12/10 23:44:53, jamesr wrote: > Are we ready to break webgl out of the ...
7 years ago (2013-12-11 00:30:41 UTC) #4
no sievers
https://codereview.chromium.org/101223005/diff/1/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc File content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (right): https://codereview.chromium.org/101223005/diff/1/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc#newcode413 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc:413: if (attributes_.shareResources) { You might want to check '&& ...
7 years ago (2013-12-11 00:36:26 UTC) #5
no sievers
And you want to think about context recovery for contexts that share explicitly. You have ...
7 years ago (2013-12-11 00:41:37 UTC) #6
bajones
New patch up. This is a little ugly still, since for the WebGraphicsContext3DCommandBufferImpl we now, ...
7 years ago (2013-12-11 22:56:09 UTC) #7
piman
https://codereview.chromium.org/101223005/diff/20001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc File content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (right): https://codereview.chromium.org/101223005/diff/20001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc#newcode395 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc:395: } So, there is a race risk here. After ...
7 years ago (2013-12-12 23:56:39 UTC) #8
bajones
https://codereview.chromium.org/101223005/diff/20001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc File content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (right): https://codereview.chromium.org/101223005/diff/20001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc#newcode395 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc:395: } On 2013/12/12 23:56:39, piman wrote: > So, there ...
7 years ago (2013-12-13 00:17:20 UTC) #9
bajones
Alright, time for a post-holiday update! Refactored as @piman suggested so that the WebGraphicsContext3DCommandBufferImpl always ...
6 years, 11 months ago (2014-01-03 21:01:46 UTC) #10
bajones
Review ping now that piman@ is (supposedly) no longer OOO
6 years, 11 months ago (2014-01-07 19:27:01 UTC) #11
piman
LGTM+nit. Please make sure Daniel sees this too, since he's more familiar with the per-GpuProcessHost ...
6 years, 11 months ago (2014-01-08 01:39:23 UTC) #12
Ken Russell (switch to Gerrit)
Overall this looks good. It's been a while since I've looked at this code, so ...
6 years, 11 months ago (2014-01-08 02:40:38 UTC) #13
no sievers
Looks good with a few comments. https://codereview.chromium.org/101223005/diff/110001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc File content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (right): https://codereview.chromium.org/101223005/diff/110001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc#newcode53 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc:53: WebGraphicsContext3DCommandBufferImpl::ShareGroup* defaultShareGroupForHost( On ...
6 years, 11 months ago (2014-01-08 14:03:53 UTC) #14
bajones
https://codereview.chromium.org/101223005/diff/110001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc File content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (right): https://codereview.chromium.org/101223005/diff/110001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc#newcode53 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc:53: WebGraphicsContext3DCommandBufferImpl::ShareGroup* defaultShareGroupForHost( On 2014/01/08 02:40:39, Ken Russell wrote: > ...
6 years, 11 months ago (2014-01-08 21:24:36 UTC) #15
no sievers
https://codereview.chromium.org/101223005/diff/110001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc File content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (right): https://codereview.chromium.org/101223005/diff/110001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc#newcode252 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc:252: if (share_context) { On 2014/01/08 21:24:37, bajones wrote: > ...
6 years, 11 months ago (2014-01-09 13:39:41 UTC) #16
bajones
On 2014/01/09 13:39:41, sievers wrote: > Can we just do this maybe to mimick the ...
6 years, 11 months ago (2014-01-10 23:30:59 UTC) #17
Ken Russell (switch to Gerrit)
On 2014/01/10 23:30:59, bajones wrote: > On 2014/01/09 13:39:41, sievers wrote: > > Can we ...
6 years, 11 months ago (2014-01-10 23:48:10 UTC) #18
piman
On 2014/01/10 23:48:10, Ken Russell wrote: > On 2014/01/10 23:30:59, bajones wrote: > > On ...
6 years, 11 months ago (2014-01-11 01:10:18 UTC) #19
bajones
Revisiting this now that the GraphicsContext3D refactor is done. The Blink side of this change ...
6 years, 10 months ago (2014-02-19 21:34:10 UTC) #20
Ken Russell (switch to Gerrit)
LGTM as far as I can tell. It would be much better if more exhaustive ...
6 years, 10 months ago (2014-02-19 22:38:25 UTC) #21
no sievers
Sorry for the delay. Just one thing... https://codereview.chromium.org/101223005/diff/510001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc File content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (right): https://codereview.chromium.org/101223005/diff/510001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc#newcode398 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc:398: share_group_->AddContextLocked(this); It's ...
6 years, 10 months ago (2014-02-24 19:37:25 UTC) #22
bajones
Done and Done.
6 years, 10 months ago (2014-02-24 20:22:34 UTC) #23
no sievers
lgtm
6 years, 10 months ago (2014-02-24 21:09:34 UTC) #24
bajones
The CQ bit was checked by bajones@chromium.org
6 years, 10 months ago (2014-02-24 21:14:19 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/101223005/570001
6 years, 10 months ago (2014-02-24 21:24:24 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/101223005/570001
6 years, 10 months ago (2014-02-25 01:29:57 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-25 04:34:08 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 10 months ago (2014-02-25 04:34:08 UTC) #29
bajones
6 years, 10 months ago (2014-02-25 18:19:50 UTC) #30
Message was sent while issue was closed.
Committed patchset #10 manually as r253204 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698