Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Issue 4829001: Use the shader translator to correct bad type information... (Closed)

Created:
10 years, 1 month ago by greggman
Modified:
9 years, 7 months ago
Reviewers:
alokp
CC:
chromium-reviews, apatrick_chromium, Paweł Hajdan Jr.
Visibility:
Public.

Description

Use the shader translator to correct bad type information returned by OpenGL drivers. TEST=unit tests, ran OpenGL ES 2.0 conformance tests and ran WebGL conformance test. Things that used to fail now pass. BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=65882

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -50 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_2.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/mocks.h View 3 chunks +21 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/program_manager.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/program_manager.cc View 1 2 4 chunks +39 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/program_manager_unittest.cc View 1 11 chunks +104 lines, -15 lines 0 comments Download
M gpu/command_buffer/service/shader_manager.h View 5 chunks +14 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/shader_manager.cc View 1 chunk +27 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/shader_manager_unittest.cc View 1 3 chunks +75 lines, -1 line 0 comments Download
M gpu/command_buffer/service/shader_translator.h View 1 2 1 chunk +45 lines, -11 lines 0 comments Download
M gpu/command_buffer/service/shader_translator.cc View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
greggman
10 years, 1 month ago (2010-11-11 22:06:35 UTC) #1
alokp
10 years, 1 month ago (2010-11-11 23:02:57 UTC) #2
lgtm

http://codereview.chromium.org/4829001/diff/1/gpu/command_buffer/service/shad...
File gpu/command_buffer/service/shader_translator.h (right):

http://codereview.chromium.org/4829001/diff/1/gpu/command_buffer/service/shad...
gpu/command_buffer/service/shader_translator.h:63: ~ShaderTranslator();
It is harmless, but please add virtual in all the functions.

http://codereview.chromium.org/4829001/diff/15001/gpu/command_buffer/service/...
File gpu/command_buffer/service/program_manager.cc (right):

http://codereview.chromium.org/4829001/diff/15001/gpu/command_buffer/service/...
gpu/command_buffer/service/program_manager.cc:258: void
ProgramManager::ProgramInfo::GetCorrectedUniformInfo(
This function looks exactly the same as above except for one function call.
Could merge them into one and use a function parameter to indicate which
variable you need to get - attrib or uniform?

http://codereview.chromium.org/4829001/diff/15001/gpu/command_buffer/service/...
File gpu/command_buffer/service/shader_manager.cc (right):

http://codereview.chromium.org/4829001/diff/15001/gpu/command_buffer/service/...
gpu/command_buffer/service/shader_manager.cc:16: attrib_map_ =
translator->attrib_map();
If you are copying the whole map here, there is no reason to build the map in
the shader translator. The shader translator can just provide functions to
enumerate all attribs and uniforms. The map could be built and stored her.

I can make this change after you have submitted this CL.

Powered by Google App Engine
This is Rietveld 408576698