|
Introduce GLStubApi
The mock GL bindings are useful, but they are very complex to setup and use
(gmock), and too slow for some uses (e.g. a fuzzer), and painful to maintain as
the decoder code evolves.
This CL introduces a GLStubApi as an alternative:
- GLStubApi hooks at the GLApi level rather than the DriverGL level, that is, it
implements a full interface rather than individual functions looked up through
GetProcAddress. It is simpler to override.
- the CL implements an auto-generated GLStubApiBase which only has trivial
functions, as well as a more concrete GLStubApi that implements enough to
initialize and run a GLES2Decoder.
- GpuChannelTest was changed to use the GLStubApi
BUG=None
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel
Committed: https://crrev.com/aa595d83c0f482773418fd441ffa0f23fd62d4ef
Cr-Commit-Position: refs/heads/master@{#405276}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+966 lines, -402 lines) |
Patch |
 |
M |
gpu/ipc/service/gpu_channel_unittest.cc
|
View
|
|
4 chunks |
+3 lines, -94 lines |
0 comments
|
Download
|
 |
M |
ui/gl/BUILD.gn
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gl/generate_bindings.py
|
View
|
|
3 chunks |
+58 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl.gyp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_api_autogen_egl.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_api_autogen_gl.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_api_autogen_glx.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_api_autogen_osmesa.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_api_autogen_wgl.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_autogen_egl.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_autogen_egl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_autogen_gl.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_autogen_gl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_autogen_glx.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_autogen_glx.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_autogen_mock.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_autogen_mock.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_autogen_osmesa.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_autogen_osmesa.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_autogen_wgl.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_bindings_autogen_wgl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_context_stub.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_enums_implementation_autogen.h
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_gl_api_implementation.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_gl_api_implementation.cc
|
View
|
|
3 chunks |
+11 lines, -0 lines |
2 comments
|
Download
|
 |
M |
ui/gl/gl_mock_autogen_gl.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
ui/gl/gl_stub_api.h
|
View
|
|
1 chunk |
+61 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/gl/gl_stub_api.cc
|
View
|
|
1 chunk |
+296 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/gl/gl_stub_api_base.h
|
View
|
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
ui/gl/gl_stub_autogen_gl.h
|
View
|
|
23 chunks |
+302 lines, -284 lines |
0 comments
|
Download
|
 |
A |
ui/gl/gl_stub_autogen_gl.cc
|
View
|
|
1 chunk |
+173 lines, -0 lines |
0 comments
|
Download
|
Total messages: 38 (20 generated)
|