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

Issue 2762873002: Remove --no-use-mus-in-renderer (Closed)

Created:
3 years, 9 months ago by Fady Samuel
Modified:
3 years, 8 months ago
Reviewers:
stanisc, sadrul, piman
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, jam, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove --no-use-mus-in-renderer use-mus-in-renderer mostly works (save for WebView/OOPIF) and that is being actively worked on. Removing this code path simplifies and unblocks further work on surface synchronization. In particular, currently, in Mus+Ash there is a mix of Chrome generated FrameSinkIds and Mus generated FrameSinkIds which complicates debugging and results in subtle bugs. In a new, upcoming, code path requesting CompositorFrameSinks becomes async and the FrameSinkId used to create a CompositorFrameSink is allocated from the window server. MusBrowserCompositorOutputSurface expects to receive a CompositorFrameSink synchronously and is deeply embedded into GpuProcessTransportFactory. In order to support the new control flow substantial refactoring is necessary in GpuProcessTransportFactory. This seemed overkill for a deprecated, soon-to-disappear codepath. This CL makes the code path disappear. BUG=672962 TBR=piman@chromium.org Review-Url: https://codereview.chromium.org/2762873002 Cr-Commit-Position: refs/heads/master@{#458470} Committed: https://chromium.googlesource.com/chromium/src/+/098eade5b1d916d43bbd0c9efba86734b66f9198

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -342 lines) Patch
M content/browser/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 6 chunks +9 lines, -39 lines 2 comments Download
D content/browser/compositor/mus_browser_compositor_output_surface.h View 1 chunk +0 lines, -84 lines 0 comments Download
D content/browser/compositor/mus_browser_compositor_output_surface.cc View 1 chunk +0 lines, -190 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 chunk +1 line, -3 lines 0 comments Download
M content/public/common/content_switches.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/public/common/content_switches.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 2 chunks +2 lines, -5 lines 0 comments Download
M content/renderer/render_widget.cc View 2 chunks +5 lines, -11 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
Fady Samuel
+sadrul@ FYI, as we discussed +piman@ please review all.
3 years, 9 months ago (2017-03-21 02:28:41 UTC) #3
sadrul
cool! lgtm!
3 years, 9 months ago (2017-03-21 17:04:47 UTC) #8
Fady Samuel
TBRing piman@ since this is mostly just deleting some mus code from content.
3 years, 9 months ago (2017-03-21 17:52:59 UTC) #9
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/2762873002/1
3 years, 9 months ago (2017-03-21 17:56:27 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/098eade5b1d916d43bbd0c9efba86734b66f9198
3 years, 9 months ago (2017-03-21 18:07:03 UTC) #15
stanisc
3 years, 8 months ago (2017-03-28 18:14:23 UTC) #17
Message was sent while issue was closed.
I've just noticed a couple of these small issues when investigating another bug.

https://codereview.chromium.org/2762873002/diff/1/content/browser/compositor/...
File content/browser/compositor/gpu_process_transport_factory.cc (left):

https://codereview.chromium.org/2762873002/diff/1/content/browser/compositor/...
content/browser/compositor/gpu_process_transport_factory.cc:563:
begin_frame_source = mus_output_surface->GetBeginFrameSource();
Now that this line of code is removed it doesn't make sense to declare
begin_frame_source further above.

https://codereview.chromium.org/2762873002/diff/1/content/browser/compositor/...
content/browser/compositor/gpu_process_transport_factory.cc:577: if
(!begin_frame_source) {
With the mus case removed above begin_frame_source will always be nullptr, so
this condition isn't needed anymore. I also recommend moving begin_frame_source
declaration here.

Powered by Google App Engine
This is Rietveld 408576698