|
Added support for glGetString, glGetShaderSource,
glGetProgramInfoLog and glGetShaderInfoLog
This turned up lots of issues.
* glGetShaderiv needed to be wrapped so it
returns the size of the shader the user passed
in. Not the munged shader sent to GL.
* Another issue that came up is that client
side validation is needed to ensure that
the client side GLES2Implementation does not
generate bad commands. For example, calling
glUniform1iv with a negative count would
generate a bad command. The service side
would see that and think the program was
malicious and stop processing commands.
So, that means I had to add some client side
validation and wrap glGetError on the client
side so I can synthisize GL errors there.
TEST=lots of unit tests.
BUG=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=40193
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+747 lines, -559 lines) |
Patch |
 |
M |
gpu/command_buffer/build_gles2_cmd_buffer.py
|
View
|
1
|
23 chunks |
+207 lines, -72 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/client/gles2_cmd_helper_autogen.h
|
View
|
1
|
3 chunks |
+8 lines, -23 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/client/gles2_implementation.h
|
View
|
1
|
4 chunks |
+19 lines, -4 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/client/gles2_implementation.cc
|
View
|
1
|
16 chunks |
+133 lines, -26 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/client/gles2_implementation_autogen.h
|
View
|
1
|
10 chunks |
+115 lines, -21 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/common/GLES2/gl2types.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/common/gles2_cmd_format.h
|
View
|
1
|
4 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
View
|
1
|
12 chunks |
+52 lines, -107 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
View
|
1
|
3 chunks |
+9 lines, -31 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/common/gles2_cmd_utils.h
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/common/gles2_cmd_utils.cc
|
View
|
1
|
2 chunks |
+46 lines, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/common_decoder.h
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/common_decoder.cc
|
View
|
1
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder.cc
|
View
|
1
|
7 chunks |
+32 lines, -52 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
|
View
|
1
|
4 chunks |
+22 lines, -75 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc
|
View
|
1
|
4 chunks |
+14 lines, -13 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h
|
View
|
1
|
3 chunks |
+63 lines, -11 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h
|
View
|
1
|
16 chunks |
+6 lines, -119 lines |
0 comments
|
Download
|
Total messages: 2 (0 generated)
|