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

Issue 1949023005: gpu: Add flag for enabling asynchronous worker context. (Closed)

Created:
4 years, 7 months ago by sunnyps
Modified:
4 years, 7 months ago
Reviewers:
piman
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: Add flag for enabling asynchronous worker context. Passing the --enable-gpu-async-worker-context causes the worker context created by RenderThreadImpl to use a different GPU stream. This also implies that the worker and compositor contexts cannot be in the same share group. At the moment there is no extra synchronization between the worker context and compositor context other than OrderingBarrier so using this flag does not guarantee correct rendering. R=piman@chromium.org,dcheng@chromium.org BUG=525259 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/d8ce1c2c02a0a77a8853ec1d0ced673fd77388a8 Cr-Commit-Position: refs/heads/master@{#392645}

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : rebase #

Patch Set 4 : forward flag #

Patch Set 5 : plumb to LayerTreeSettings #

Patch Set 6 : reintroduce GPU_STREAM_INVALID enum #

Patch Set 7 : rebase #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : rebase #

Patch Set 11 : rebase fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -36 lines) Patch
M cc/proto/layer_tree_settings.proto View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/gpu/compositor_util.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/gpu/compositor_util.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_ipc_browsertests.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.h View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.cc View 1 2 3 chunks +7 lines, -5 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/gpu/compositor_dependencies.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_video_encoder_host.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/pepper/ppb_graphics_3d_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 6 chunks +23 lines, -5 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 1 chunk +13 lines, -7 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M content/test/fake_compositor_dependencies.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/test/fake_compositor_dependencies.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/ipc/client/command_buffer_proxy_impl.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/ipc/client/gpu_channel_host.h View 1 chunk +0 lines, -4 lines 0 comments Download
M gpu/ipc/client/gpu_channel_host.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 34 (17 generated)
sunnyps
PTAL
4 years, 7 months ago (2016-05-04 21:35:17 UTC) #3
sunnyps
On 2016/05/04 21:35:17, sunnyps wrote: > PTAL dcheng@ Please RS gpu_stream_constants.h
4 years, 7 months ago (2016-05-04 21:36:33 UTC) #4
piman
You are going to need to rebase on top of at least https://codereview.chromium.org/1944603002 (merged WebGraphicsContext3DCommandBufferImpl ...
4 years, 7 months ago (2016-05-04 21:39:35 UTC) #5
piman
https://codereview.chromium.org/1949023005/diff/20001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/1949023005/diff/20001/content/renderer/render_thread_impl.cc#newcode1954 content/renderer/render_thread_impl.cc:1954: switches::kEnableGpuAsyncWorkerContext)) { For this to work, you need to ...
4 years, 7 months ago (2016-05-04 21:45:06 UTC) #6
sunnyps
Rebased and also fixed the flag forwarding. PTAL Also -dcheng since there are no changes ...
4 years, 7 months ago (2016-05-06 01:24:37 UTC) #8
piman
lgtm
4 years, 7 months ago (2016-05-06 01:34:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949023005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949023005/100001
4 years, 7 months ago (2016-05-06 04:47:42 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/1571) ios-device-gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 7 months ago (2016-05-06 04:49:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949023005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949023005/120001
4 years, 7 months ago (2016-05-07 02:34:01 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/85644) cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 7 months ago (2016-05-07 02:42:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949023005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949023005/140001
4 years, 7 months ago (2016-05-07 06:48:12 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/62531)
4 years, 7 months ago (2016-05-07 06:59:44 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949023005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949023005/160001
4 years, 7 months ago (2016-05-09 17:15:18 UTC) #26
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/compositor_impl_android.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 7 months ago (2016-05-09 18:05:48 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949023005/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949023005/200001
4 years, 7 months ago (2016-05-10 17:07:05 UTC) #31
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 7 months ago (2016-05-10 18:02:56 UTC) #32
commit-bot: I haz the power
4 years, 7 months ago (2016-05-10 18:05:27 UTC) #34
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/d8ce1c2c02a0a77a8853ec1d0ced673fd77388a8
Cr-Commit-Position: refs/heads/master@{#392645}

Powered by Google App Engine
This is Rietveld 408576698