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

Issue 2317363005: Add basic GL functionality to the passthrough command buffer. (Closed)

Created:
4 years, 3 months ago by Geoff Lang
Modified:
4 years, 3 months ago
Reviewers:
Zhenyao Mo, piman
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add basic GL functionality to the passthrough command buffer. With this patch, the passthrough command buffer is capable of rendering chrome and basic WebGL content. BUG=602688 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/851a481ac9a8ef1d0f1d8ccf693d5d735d209b7a Cr-Commit-Position: refs/heads/master@{#418637}

Patch Set 1 #

Patch Set 2 #

Patch Set 3 #

Total comments: 19

Patch Set 4 : Address zmo's comments. #

Total comments: 21

Patch Set 5 : Address piman's comments. #

Total comments: 2

Patch Set 6 : Handle bind_generates_resource #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1193 lines, -40 lines) Patch
M gpu/command_buffer/service/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/command_buffer/service/client_service_map.h View 1 2 3 4 5 1 chunk +73 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/context_group.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/context_group.cc View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gl_utils.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gl_utils.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 1 chunk +0 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h View 1 2 3 4 5 3 chunks +53 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc View 1 2 3 4 5 6 chunks +87 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototypes.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc View 1 2 3 4 5 157 chunks +918 lines, -24 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.h View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (29 generated)
Geoff Lang
PTAL
4 years, 3 months ago (2016-09-09 20:37:30 UTC) #10
Zhenyao Mo
mostly looks good, but I don't know mailbox code well enough. https://codereview.chromium.org/2317363005/diff/40001/gpu/command_buffer/service/client_service_map.h File gpu/command_buffer/service/client_service_map.h (right): ...
4 years, 3 months ago (2016-09-09 21:22:11 UTC) #13
Geoff Lang
https://codereview.chromium.org/2317363005/diff/40001/gpu/command_buffer/service/client_service_map.h File gpu/command_buffer/service/client_service_map.h (right): https://codereview.chromium.org/2317363005/diff/40001/gpu/command_buffer/service/client_service_map.h#newcode44 gpu/command_buffer/service/client_service_map.h:44: } else { On 2016/09/09 21:22:10, Zhenyao Mo wrote: ...
4 years, 3 months ago (2016-09-12 14:21:29 UTC) #15
Zhenyao Mo
lgtm with one question answered https://codereview.chromium.org/2317363005/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc File gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc (right): https://codereview.chromium.org/2317363005/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc#newcode2243 gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc:2243: glGetProgramiv(service_program, GL_LINK_STATUS, &link_status); On ...
4 years, 3 months ago (2016-09-12 18:15:35 UTC) #19
piman
https://codereview.chromium.org/2317363005/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc File gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc (right): https://codereview.chromium.org/2317363005/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc#newcode16 gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc:16: PassthroughResources::~PassthroughResources() {} If there are still resources in here, ...
4 years, 3 months ago (2016-09-13 01:07:32 UTC) #20
Geoff Lang
On 2016/09/12 18:15:35, Zhenyao Mo wrote: > lgtm with one question answered > > https://codereview.chromium.org/2317363005/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc ...
4 years, 3 months ago (2016-09-13 16:43:15 UTC) #21
Geoff Lang
Will upload another patch once I add some unit tests for the ClientServiceMap https://codereview.chromium.org/2317363005/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc File ...
4 years, 3 months ago (2016-09-13 17:49:57 UTC) #26
piman
https://codereview.chromium.org/2317363005/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc File gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc (right): https://codereview.chromium.org/2317363005/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc#newcode24 gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc:24: } There's one other condition that you may want ...
4 years, 3 months ago (2016-09-13 21:16:50 UTC) #29
Geoff Lang
I updated the logic for handling binding of non-gen'd objects. For objects capable of being ...
4 years, 3 months ago (2016-09-14 17:43:37 UTC) #32
piman
LGTM, thanks for working through this!
4 years, 3 months ago (2016-09-14 18:22:45 UTC) #33
Geoff Lang
On 2016/09/14 18:22:45, piman OOO back 2016-09-12 wrote: > LGTM, thanks for working through this! ...
4 years, 3 months ago (2016-09-14 19:12:13 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2317363005/100001
4 years, 3 months ago (2016-09-14 19:14:10 UTC) #39
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-14 19:21:01 UTC) #41
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 19:22:24 UTC) #43
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/851a481ac9a8ef1d0f1d8ccf693d5d735d209b7a
Cr-Commit-Position: refs/heads/master@{#418637}

Powered by Google App Engine
This is Rietveld 408576698