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

Issue 15798014: Replace context parenting by sharing through mailboxes (Closed)

Created:
7 years, 6 months ago by piman
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Replace context parenting by sharing through mailboxes Instead of tying contexts together through the parenting mechanism, we can allow the client to produce the front buffer of an offscreen context into a mailbox, and use that in the "parent" context. It simplifies the code and the semantics wrt lost contexts, and we want to use mailboxes anyway. BUG=164095 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204194

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : add test #

Total comments: 2

Patch Set 4 : comments #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -262 lines) Patch
M content/common/gpu/client/command_buffer_proxy_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.cc View 1 chunk +2 lines, -23 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 3 chunks +9 lines, -18 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 2 chunks +5 lines, -6 lines 0 comments Download
M content/renderer/pepper/pepper_platform_context_3d_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/pepper_platform_context_3d_impl.cc View 1 3 chunks +13 lines, -14 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.h View 1 chunk +0 lines, -3 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 9 chunks +60 lines, -128 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/texture_manager.h View 1 2 3 chunks +1 line, -8 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 2 3 chunks +2 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/texture_manager_unittest.cc View 1 2 1 chunk +0 lines, -23 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_texture_mailbox_unittests.cc View 1 2 3 chunks +53 lines, -1 line 0 comments Download
M gpu/ipc/command_buffer_proxy.h View 2 chunks +4 lines, -6 lines 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.h View 1 chunk +1 line, -2 lines 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.cc View 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
piman
7 years, 6 months ago (2013-06-01 01:22:04 UTC) #1
piman
(follow-up is at https://codereview.chromium.org/16290005 for the pepper changes).
7 years, 6 months ago (2013-06-01 01:33:55 UTC) #2
piman
oh, and +jschuh for gpu_messages.h
7 years, 6 months ago (2013-06-01 01:34:58 UTC) #3
piman
PTAL. I uploaded a new version that actually removed the "SetNotOwned" business. The Texture that ...
7 years, 6 months ago (2013-06-04 02:40:34 UTC) #4
apatrick_chromium
lgtm https://codereview.chromium.org/15798014/diff/11001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/15798014/diff/11001/content/common/gpu/gpu_command_buffer_stub.cc#newcode583 content/common/gpu/gpu_command_buffer_stub.cc:583: TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnSetParent"); GpuCommandBufferStub::OnSetParent -> GpuCommandBufferStub::OnProduceFrontBuffe
7 years, 6 months ago (2013-06-04 20:37:51 UTC) #5
apatrick_chromium
Oh and the "From Dust" game would be a good test if you haven't tried ...
7 years, 6 months ago (2013-06-04 20:38:24 UTC) #6
jschuh
ipc security lgtm. custom id to mailbox change.
7 years, 6 months ago (2013-06-04 20:40:00 UTC) #7
greggman
lgtm
7 years, 6 months ago (2013-06-04 23:14:47 UTC) #8
piman
https://codereview.chromium.org/15798014/diff/11001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/15798014/diff/11001/content/common/gpu/gpu_command_buffer_stub.cc#newcode583 content/common/gpu/gpu_command_buffer_stub.cc:583: TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnSetParent"); On 2013/06/04 20:37:51, apatrick_chromium wrote: > GpuCommandBufferStub::OnSetParent ...
7 years, 6 months ago (2013-06-04 23:55:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/15798014/27001
7 years, 6 months ago (2013-06-04 23:55:53 UTC) #10
commit-bot: I haz the power
Failed to apply patch for gpu/command_buffer/service/gles2_cmd_decoder.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-06-04 23:55:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/15798014/32001
7 years, 6 months ago (2013-06-05 00:03:22 UTC) #12
piman
On 2013/06/04 20:38:24, apatrick_chromium wrote: > Oh and the "From Dust" game would be a ...
7 years, 6 months ago (2013-06-05 00:55:11 UTC) #13
commit-bot: I haz the power
7 years, 6 months ago (2013-06-05 07:48:52 UTC) #14
Message was sent while issue was closed.
Change committed as 204194

Powered by Google App Engine
This is Rietveld 408576698