Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Issue 2107783003: Pass initial size and GPU preference via context attributes (Closed)

Created:
4 years, 5 months ago by piman
Modified:
4 years, 5 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, posciak+watch_chromium.org, sievers+watch_chromium.org, nyquist+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, jam, jbauman+watch_chromium.org, nona+watch_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, darin-cc_chromium.org, jochen+watch_chromium.org, lethalantidote+watch-blimp_chromium.org, kalyank, android-webview-reviews_chromium.org, dtrainor+watch-blimp_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, khushalsagar+watch-blimp_chromium.org, mlamouri+watch-test-runner_chromium.org, rjkroege, anandc+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, Ian Vollick, shuchen+watch_chromium.org, danakj+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 #

Patch Set 2 : gpu/ipc/common/OWNERS presubmit #

Total comments: 4

Patch Set 3 : address danakj's comments #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : gyp fix #

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

Messages

Total messages: 42 (20 generated)
piman
sievers: Please review fsamuel: OWNER for components/mus/gles2/command_buffer_driver.cc and components/mus/surfaces/surfaces_context_provider.cc sky: OWNER for components/mus/public/cpp/lib/gles2_context.cc wez: OWNER ...
4 years, 5 months ago (2016-06-29 03:24:53 UTC) #5
sky
LGTM
4 years, 5 months ago (2016-06-29 03:27:42 UTC) #6
Fady Samuel
lgtm
4 years, 5 months ago (2016-06-29 10:04:31 UTC) #7
dcheng
ipc lgtm
4 years, 5 months ago (2016-06-29 10:14:19 UTC) #8
danakj
drive-by LGTM https://codereview.chromium.org/2107783003/diff/20001/components/mus/gles2/command_buffer_driver.cc File components/mus/gles2/command_buffer_driver.cc (right): https://codereview.chromium.org/2107783003/diff/20001/components/mus/gles2/command_buffer_driver.cc#newcode119 components/mus/gles2/command_buffer_driver.cc:119: // TODO(piman): virtual contexts, gpu preference. can ...
4 years, 5 months ago (2016-06-29 18:25:54 UTC) #10
Wez
blimp/ LGTM
4 years, 5 months ago (2016-06-29 20:11:00 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2107783003/60001
4 years, 5 months ago (2016-06-29 20:27:45 UTC) #15
piman
https://codereview.chromium.org/2107783003/diff/20001/components/mus/gles2/command_buffer_driver.cc File components/mus/gles2/command_buffer_driver.cc (right): https://codereview.chromium.org/2107783003/diff/20001/components/mus/gles2/command_buffer_driver.cc#newcode119 components/mus/gles2/command_buffer_driver.cc:119: // TODO(piman): virtual contexts, gpu preference. On 2016/06/29 18:25:54, ...
4 years, 5 months ago (2016-06-29 20:28:52 UTC) #16
boliu
lgtm
4 years, 5 months ago (2016-06-29 21:45:49 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-29 21:50:17 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2107783003/60001
4 years, 5 months ago (2016-06-29 22:07:32 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-06-29 22:26:23 UTC) #24
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/11f4e35b660f4f5cbaed65a0a7f181b8426e877e Cr-Commit-Position: refs/heads/master@{#402955}
4 years, 5 months ago (2016-06-29 22:27:44 UTC) #26
Pete Williamson
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2106103005/ by petewil@chromium.org. ...
4 years, 5 months ago (2016-06-29 23:18:14 UTC) #27
piman
On 2016/06/29 23:18:14, Pete Williamson wrote: > A revert of this CL (patchset #4 id:60001) ...
4 years, 5 months ago (2016-06-29 23:31:17 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2107783003/100001
4 years, 5 months ago (2016-06-30 03:04:45 UTC) #31
piman
danakj: PTAL, added a gyp fix.
4 years, 5 months ago (2016-06-30 03:33:15 UTC) #33
danakj
LGTM
4 years, 5 months ago (2016-06-30 18:22:31 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2107783003/100001
4 years, 5 months ago (2016-06-30 18:25:05 UTC) #37
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-06-30 19:07:17 UTC) #39
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 19:07:45 UTC) #40
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 19:10:46 UTC) #42
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/d488e8b4f505630ef5b4cb7368a34fee8f28d480
Cr-Commit-Position: refs/heads/master@{#403238}

Powered by Google App Engine
This is Rietveld 408576698