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

Issue 2852923004: Remove NameMap from shader translator and shader/program managers (Closed)

Created:
3 years, 7 months ago by Kai Ninomiya
Modified:
3 years, 7 months ago
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove NameMap from shader translator and shader/program managers NameMap, which after the previous patch is no longer used by the shader/program managers, is removed, and the tests updated. Tests are also added for GetOriginalNameFromHashedName, though these don't actually hit the original error case in the bug report. That's a difficult integration issue and is tested instead by the WebGL conformance tests. Usages of GetOriginalNameFromHashedName are replaced with more specific methods calls in Program::{GetTransformFeedbackVaryings,GetUniformBlocks}. This avoids querying the unnecessary extra four info maps. BUG=716018 TEST=https://github.com/KhronosGroup/WebGL/pull/2388 TEST=https://github.com/KhronosGroup/WebGL/pull/2389 TEST=ShaderManagerTest.DoCompile CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;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 Review-Url: https://codereview.chromium.org/2852923004 Cr-Commit-Position: refs/heads/master@{#469398} Committed: https://chromium.googlesource.com/chromium/src/+/78c79d2aff281ddebbe220a1f41214d3c071f16b

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 2

Patch Set 3 : Remove gles2::NameMap and all of its users #

Patch Set 4 : resurrect a hardier version of GetOriginalNameFromHashedName #

Patch Set 5 : split CL #

Total comments: 8

Patch Set 6 : remove some TODO(zmo)s #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -153 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/memory_program_cache_unittest.cc View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/mocks.h View 1 2 3 1 chunk +10 lines, -11 lines 0 comments Download
M gpu/command_buffer/service/program_manager.h View 1 2 3 1 chunk +9 lines, -1 line 0 comments Download
M gpu/command_buffer/service/program_manager.cc View 1 2 3 4 5 3 chunks +33 lines, -10 lines 0 comments Download
M gpu/command_buffer/service/program_manager_unittest.cc View 1 2 3 14 chunks +18 lines, -18 lines 0 comments Download
M gpu/command_buffer/service/shader_manager.h View 1 2 3 2 chunks +2 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/shader_manager.cc View 1 2 3 5 2 chunks +16 lines, -13 lines 0 comments Download
M gpu/command_buffer/service/shader_manager_unittest.cc View 1 2 3 5 chunks +14 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/shader_translator.h View 1 2 3 chunks +2 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/shader_translator.cc View 1 2 3 chunks +10 lines, -29 lines 0 comments Download
M gpu/command_buffer/service/shader_translator_unittest.cc View 1 2 3 16 chunks +12 lines, -35 lines 0 comments Download
M gpu/command_buffer/service/test_helper.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M gpu/command_buffer/service/test_helper.cc View 1 2 3 5 chunks +4 lines, -9 lines 0 comments Download

Messages

Total messages: 50 (34 generated)
Kai Ninomiya
kbr: PTAL, although I think this may need some more work to remove the fragile-looking ...
3 years, 7 months ago (2017-05-01 22:43:34 UTC) #10
Ken Russell (switch to Gerrit)
This looks good overall but could you see whether a unit test in src/gpu/command_buffer/service/gles2_cmd_decoder_unittest_programs.cc is ...
3 years, 7 months ago (2017-05-01 23:02:30 UTC) #12
Kai Ninomiya
On 2017/05/01 23:02:30, Ken Russell wrote: > This looks good overall but could you see ...
3 years, 7 months ago (2017-05-02 00:06:08 UTC) #15
Kai Ninomiya
https://codereview.chromium.org/2852923004/diff/20001/gpu/command_buffer/service/program_manager.cc File gpu/command_buffer/service/program_manager.cc (right): https://codereview.chromium.org/2852923004/diff/20001/gpu/command_buffer/service/program_manager.cc#newcode1549 gpu/command_buffer/service/program_manager.cc:1549: // used instead. On 2017/05/01 23:02:30, Ken Russell wrote: ...
3 years, 7 months ago (2017-05-02 00:06:13 UTC) #16
Kai Ninomiya
jbauman: actually, you can defer on the review. I'm investigating further into the issues here ...
3 years, 7 months ago (2017-05-02 00:36:14 UTC) #17
Kai Ninomiya
On 2017/05/02 00:36:14, Kai Ninomiya wrote: > jbauman: actually, you can defer on the review. ...
3 years, 7 months ago (2017-05-02 01:35:09 UTC) #18
Kai Ninomiya
kbr, jbauman: PTAL, this is ready for review again. I've split this CL in half; ...
3 years, 7 months ago (2017-05-03 00:12:37 UTC) #26
Ken Russell (switch to Gerrit)
CC'ing zmo@ as he may have more comments having worked with the name map before. ...
3 years, 7 months ago (2017-05-03 22:52:49 UTC) #31
Kai Ninomiya
https://codereview.chromium.org/2852923004/diff/80001/gpu/command_buffer/service/program_manager.cc File gpu/command_buffer/service/program_manager.cc (right): https://codereview.chromium.org/2852923004/diff/80001/gpu/command_buffer/service/program_manager.cc#newcode2268 gpu/command_buffer/service/program_manager.cc:2268: names[ii] = interface_block->name + array_index_str; On 2017/05/03 22:52:48, Ken ...
3 years, 7 months ago (2017-05-03 23:02:34 UTC) #32
Ken Russell (switch to Gerrit)
Thanks for the updates. LGTM but I'm not a directory OWNER. https://codereview.chromium.org/2852923004/diff/80001/gpu/command_buffer/service/shader_manager_unittest.cc File gpu/command_buffer/service/shader_manager_unittest.cc (right): ...
3 years, 7 months ago (2017-05-03 23:10:02 UTC) #33
Zhenyao Mo
Thanks a lot for cleaning this up. Now we no longer use the general name ...
3 years, 7 months ago (2017-05-03 23:24:12 UTC) #35
Zhenyao Mo
On 2017/05/03 23:24:12, Zhenyao Mo wrote: > Thanks a lot for cleaning this up. > ...
3 years, 7 months ago (2017-05-03 23:24:21 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/2852923004/100001
3 years, 7 months ago (2017-05-04 00:21:07 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/418258) win_optional_gpu_tests_rel on master.tryserver.chromium.win (JOB_FAILED, ...
3 years, 7 months ago (2017-05-04 00:27:58 UTC) #41
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/2852923004/100001
3 years, 7 months ago (2017-05-04 18:39:11 UTC) #47
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 18:45:51 UTC) #50
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/78c79d2aff281ddebbe220a1f412...

Powered by Google App Engine
This is Rietveld 408576698