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

Issue 900543004: Clean up some of the shader compilation code. (Closed)

Created:
5 years, 10 months ago by David Yen
Modified:
5 years, 10 months ago
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up some of the shader compilation code. This cL contains some micro optimizations as well as cleaning up some variables that are left over from old refactors. One variable in particular that was deleted is the "compiler_options_" member within the Shader class. This member was used to hold extra compiler options such as extensions for cache key purposes. However, at some point this mechanism has been replaced by querying the angle compiler directly for a string which represents the resources. BUG=453543 TEST=trybots Committed: https://crrev.com/7b0b4ba57d1755c38baa1f569760683b12c49940 Cr-Commit-Position: refs/heads/master@{#314642}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Added shader length unit test and fixed length check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -12 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/shader_manager.cc View 2 chunks +9 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/shader_translator.h View 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/service/shader_translator.cc View 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/tests/gl_program_unittest.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
David Yen
5 years, 10 months ago (2015-02-03 22:33:05 UTC) #2
Ken Russell (switch to Gerrit)
Thanks for doing this cleanup. It generally looks good but two comments. https://codereview.chromium.org/900543004/diff/1/gpu/command_buffer/service/shader_manager.cc File gpu/command_buffer/service/shader_manager.cc ...
5 years, 10 months ago (2015-02-04 00:52:36 UTC) #4
David Yen
https://codereview.chromium.org/900543004/diff/1/gpu/command_buffer/service/shader_manager.cc File gpu/command_buffer/service/shader_manager.cc (right): https://codereview.chromium.org/900543004/diff/1/gpu/command_buffer/service/shader_manager.cc#newcode71 gpu/command_buffer/service/shader_manager.cc:71: translated_source_.resize(len); On 2015/02/04 00:52:36, Ken Russell wrote: > Be ...
5 years, 10 months ago (2015-02-04 01:01:05 UTC) #5
vmiura
https://codereview.chromium.org/900543004/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/900543004/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7055 gpu/command_buffer/service/gles2_cmd_decoder.cc:7055: str.append(data[ii], length[ii]); I believe the spec is that if ...
5 years, 10 months ago (2015-02-04 05:49:02 UTC) #6
vmiura
https://codereview.chromium.org/900543004/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/900543004/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7055 gpu/command_buffer/service/gles2_cmd_decoder.cc:7055: str.append(data[ii], length[ii]); On 2015/02/04 05:49:02, vmiura wrote: > I ...
5 years, 10 months ago (2015-02-04 05:55:51 UTC) #7
David Yen
https://codereview.chromium.org/900543004/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/900543004/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7055 gpu/command_buffer/service/gles2_cmd_decoder.cc:7055: str.append(data[ii], length[ii]); On 2015/02/04 05:55:51, vmiura wrote: > On ...
5 years, 10 months ago (2015-02-04 19:13:33 UTC) #8
Ken Russell (switch to Gerrit)
lgtm
5 years, 10 months ago (2015-02-04 19:37:35 UTC) #9
vmiura
lgtm
5 years, 10 months ago (2015-02-04 20:52:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/900543004/20001
5 years, 10 months ago (2015-02-04 20:55:32 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-04 21:38:35 UTC) #13
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 21:41:20 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7b0b4ba57d1755c38baa1f569760683b12c49940
Cr-Commit-Position: refs/heads/master@{#314642}

Powered by Google App Engine
This is Rietveld 408576698