|
Pass initial offscreen size and GPU preference via context attributes
This makes client code simpler, because all those things are passed through the same places.
This CL also cleans up a few things:
1- make (0, 0) a valid size for offscreen contexts more generally. It is already the case for GPU process contexts (CommandBufferProxyImpl), make it valid for the other types (GLInProcessContext, tests) by handling the logic it in GLES2DecoderImpl. This will also allow us to later remove allocating unneeded textures.
2- many callers were setting an arbitrary dummy size, even for onscreen contexts (where it's not used), or when the default framebuffer isn't used (most contexts except Pepper and EGL).
3- many callers were arbitrarily choosing the discrete GPU, when it doesn't matter (android, tests), whereas most of the code (compositor, helper contexts) should be choosing the integrated one, for consistency. In particular, pixel tests should be consistent with production.
BUG=None
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/11f4e35b660f4f5cbaed65a0a7f181b8426e877e
Committed: https://crrev.com/d488e8b4f505630ef5b4cb7368a34fee8f28d480
Cr-Original-Commit-Position: refs/heads/master@{#402955}
Cr-Commit-Position: refs/heads/master@{#403238}
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+109 lines, -189 lines) |
Patch |
 |
M |
android_webview/browser/aw_render_thread_context_provider.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
blimp/client/feature/compositor/blimp_context_provider.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_in_process_context_provider.cc
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/display_compositor/gl_helper_benchmark.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/display_compositor/gl_helper_unittest.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
components/display_compositor/yuv_readback_unittest.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
components/mus/gles2/command_buffer_driver.cc
|
View
|
1
2
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
components/mus/public/cpp/lib/gles2_context.cc
|
View
|
1
2
3
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/mus/surfaces/surfaces_context_provider.cc
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/gpu_process_transport_factory.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/gpu/gpu_ipc_browsertests.cc
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/compositor_impl_android.cc
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_android.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/context_provider_command_buffer.h
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/context_provider_command_buffer.cc
|
View
|
|
3 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_video_encoder_host.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/ppb_graphics_3d_impl.cc
|
View
|
|
4 chunks |
+8 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_thread_impl.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/renderer/renderer_blink_platform_impl.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/test/layouttest_support.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/client/gl_in_process_context.h
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/client/gl_in_process_context.cc
|
View
|
1
2
|
4 chunks |
+4 lines, -12 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/command_buffer.gyp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/common/BUILD.gn
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/common/gles2_cmd_utils.h
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/common/gles2_cmd_utils.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder.cc
|
View
|
1
2
3
|
3 chunks |
+13 lines, -6 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder_mock.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/in_process_command_buffer.h
|
View
|
|
3 chunks |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/in_process_command_buffer.cc
|
View
|
|
6 chunks |
+7 lines, -19 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/tests/gl_manager.cc
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
gpu/gles2_conform_support/egl/context.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
gpu/ipc/client/command_buffer_proxy_impl.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
gpu/ipc/client/command_buffer_proxy_impl.cc
|
View
|
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
gpu/ipc/client/gpu_in_process_context_tests.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
gpu/ipc/common/OWNERS
|
View
|
1
|
1 chunk |
+7 lines, -10 lines |
0 comments
|
Download
|
 |
M |
gpu/ipc/common/gpu_messages.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
gpu/ipc/common/gpu_param_traits_macros.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/ipc/service/gpu_channel_unittest.cc
|
View
|
|
12 chunks |
+0 lines, -22 lines |
0 comments
|
Download
|
 |
M |
gpu/ipc/service/gpu_command_buffer_stub.cc
|
View
|
|
6 chunks |
+6 lines, -13 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/test/in_process_context_provider.cc
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
Total messages: 42 (20 generated)
|