|
Remove WGC3D::isContextLost references from cc
The notion of whether a context is lost is a property of both the gpu::
context itself and the system providing it. For instance, the content
context provider checks if there is an error in the context or if the IPC
channel backing the command buffer is down. Thus, asking if a context is
lost really should go through the ContextProvider. This patch routes all
lost context checks from cc through the ContextProvider.
Unfortunately, this required reworking the program initialization code
considerably due to the way some DCHECKs were written. The new model is that
the program binding itself is inert upon construction and all initialization
is done in the Initialize() call. This call is still made eagerly for some
expected-to-be-common programs and lazily for the rest. This patch moves
when the linkProgram() call is issued slightly for the eagerly compiled programs,
but it shouldn't make any difference in practice.
This patch also revamps TextureLayerClient to hide the backing context since
cc only makes two calls (check for loss and insert rate limiting token) on
the client's context.
R=piman
BUG= 181120
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233325
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+398 lines, -678 lines) |
Patch |
 |
M |
cc/layers/texture_layer.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer_client.h
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer_unittest.cc
|
View
|
1
2
|
18 chunks |
+40 lines, -78 lines |
0 comments
|
Download
|
 |
M |
cc/output/context_provider.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/output/context_provider.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
cc/output/delegating_renderer.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
cc/output/gl_renderer.h
|
View
|
1
2
|
1 chunk |
+52 lines, -59 lines |
0 comments
|
Download
|
 |
M |
cc/output/gl_renderer.cc
|
View
|
|
10 chunks |
+207 lines, -324 lines |
0 comments
|
Download
|
 |
M |
cc/output/gl_renderer_unittest.cc
|
View
|
1
2
3
4
|
4 chunks |
+21 lines, -30 lines |
0 comments
|
Download
|
 |
M |
cc/output/program_binding.h
|
View
|
|
4 chunks |
+23 lines, -23 lines |
0 comments
|
Download
|
 |
M |
cc/output/program_binding.cc
|
View
|
|
3 chunks |
+13 lines, -22 lines |
0 comments
|
Download
|
 |
M |
cc/output/shader.h
|
View
|
|
28 chunks |
+1 line, -29 lines |
0 comments
|
Download
|
 |
M |
cc/output/shader.cc
|
View
|
|
55 chunks |
+2 lines, -62 lines |
0 comments
|
Download
|
 |
M |
cc/test/fake_web_graphics_context_3d.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/test/fake_web_graphics_context_3d.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_context_provider.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_context_provider.cc
|
View
|
1
2
|
3 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_web_graphics_context_3d.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/test/test_web_graphics_context_3d.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/aura/gpu_process_transport_factory.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_android.h
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_android.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/context_provider_command_buffer.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/context_provider_command_buffer.cc
|
View
|
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_plugin_instance_impl.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_plugin_instance_impl.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/layer.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/compositor/layer.cc
|
View
|
1
2
|
2 chunks |
+1 line, -7 lines |
0 comments
|
Download
|
 |
M |
webkit/common/gpu/context_provider_in_process.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/common/gpu/context_provider_in_process.cc
|
View
|
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
webkit/renderer/compositor_bindings/web_external_texture_layer_impl.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc
|
View
|
1
2
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
Total messages: 17 (0 generated)
|