|
Make dynamic mock bindings initialization consistent with other GL implementations
Various cleanup:
- Every context type except GLContextStub calls InitializeDynamicBindings in
MakeCurrent. Make it consistent.
- In turn, it means we don't need an explicit InitializeDynamicMockBindings, so
remove it.
- In some tests, we were creating a context just to be able to call
InitializeDynamicMockBindings. This is not necessary any more - dynamic
bindings will be initalized as the first useful context is made current
- Realizing that InitializeDynamicGLBindings is always called with a real
context, remove the special cases for mock bindings. This makes it consistent
with other GL implementations
- In turn InitializeDynamicGLBindings always does exactly
InitializeDynamicGLBindingsGL for valid GLImplementations, and is only called
with a valid GLImplementation, simplify. It also means it can't fail.
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/608429d9968aa471d128c74628d345c10fa8cf08
Cr-Commit-Position: refs/heads/master@{#404548}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+10 lines, -175 lines) |
Patch |
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gpu_service_test.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
gpu/ipc/service/gpu_channel_unittest.cc
|
View
|
|
2 chunks |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_context.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_context.cc
|
View
|
|
1 chunk |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_context_cgl.cc
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_context_egl.cc
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_context_glx.cc
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_context_osmesa.cc
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_context_stub.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/gl_context_wgl.cc
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_implementation.h
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_implementation_android.cc
|
View
|
|
1 chunk |
+0 lines, -25 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_implementation_mac.cc
|
View
|
|
1 chunk |
+0 lines, -26 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_implementation_ozone.cc
|
View
|
|
1 chunk |
+0 lines, -24 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_implementation_win.cc
|
View
|
|
1 chunk |
+0 lines, -25 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_implementation_x11.cc
|
View
|
|
1 chunk |
+0 lines, -25 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gpu_timing_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/test/gl_surface_test_support.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/gl/test/gl_surface_test_support.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
Total messages: 13 (8 generated)
|