|
Make ShaderTranslatorCache per thread refcounted
After crbug.com/332146 is fixed, in Android WebView, GLES2Decoder can be
used on two threads. Make sure a ShaderTranslatorCache instance is only
used on a single thread by refcounting an instance between all decoders.
Also protect ShInitialize by using the thread safety guarantees of
LazyInstance.
For tests, a new instance of ShaderTranslatorCache is passed for each
ContextGroup.
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261427
Total comments: 5
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+114 lines, -50 lines) |
Patch |
|
M |
android_webview/browser/hardware_renderer.h
|
View
|
1
2
3
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
android_webview/browser/hardware_renderer.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/gpu_channel_manager.h
|
View
|
1
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/gpu_channel_manager.cc
|
View
|
1
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/gpu_command_buffer_stub.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
gpu/command_buffer/service/context_group.h
|
View
|
1
2
3
4
|
4 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
gpu/command_buffer/service/context_group.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
gpu/command_buffer/service/context_group_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gpu/command_buffer/service/gles2_cmd_decoder.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+17 lines, -5 lines |
0 comments
|
Download
|
|
M |
gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
gpu/command_buffer/service/in_process_command_buffer.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
gpu/command_buffer/service/in_process_command_buffer.cc
|
View
|
1
2
3
|
3 chunks |
+18 lines, -6 lines |
0 comments
|
Download
|
|
M |
gpu/command_buffer/service/shader_translator.cc
|
View
|
1
2
|
3 chunks |
+14 lines, -16 lines |
0 comments
|
Download
|
|
M |
gpu/command_buffer/service/shader_translator_cache.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+8 lines, -9 lines |
0 comments
|
Download
|
|
M |
gpu/command_buffer/service/shader_translator_cache.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
gpu/command_buffer/tests/gl_manager.cc
|
View
|
1
2
3
|
1 chunk |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
gpu/gles2_conform_support/egl/display.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
mojo/services/gles2/command_buffer_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+9 lines, -2 lines |
0 comments
|
Download
|
Total messages: 48 (0 generated)
|