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

Issue 1472063007: mustash: enable GPU Compositing in renderer (Closed)

Created:
5 years ago by Peng
Modified:
5 years ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, yusukes+watch_chromium.org, Aaron Boodman, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, nona+watch_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, darin (slow to review), James Su, ben+mojo_chromium.org, viettrungluu+watch_chromium.org, qsr+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mustash: enable GPU Compositing in renderer. By using mus::OutputSurface as the cc output surface to allow renderer to draw on a mus::Window directly. Known issues: Input doesn't work. Renderer position isn't correct. Resizing is not smooth. TEST=./out/mandoline_Debug/mojo_runner mojo:example_main --use-mus-in-renderer --use-zero-copy BUG=551250 TBR=jam@chromium.org Committed: https://crrev.com/28a5fa2c08f88309e825b46b3b15a345044c712d Cr-Commit-Position: refs/heads/master@{#362745}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Update #

Patch Set 3 : WIP #

Patch Set 4 : WIP #

Patch Set 5 : Rebase #

Patch Set 6 : Update #

Total comments: 16

Patch Set 7 : Address review issues #

Total comments: 2

Patch Set 8 : git cl format #

Total comments: 6

Patch Set 9 : Address review issues #

Patch Set 10 : . #

Patch Set 11 : . #

Total comments: 1

Patch Set 12 : . #

Total comments: 10

Patch Set 13 : address review issues. #

Total comments: 2

Patch Set 14 : Address issues. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -56 lines) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mus.cc View 1 2 3 4 5 6 1 chunk +6 lines, -1 line 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 2 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 11 12 2 chunks +13 lines, -0 lines 0 comments Download
M content/renderer/render_widget_mus_connection.h View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -6 lines 0 comments Download
M content/renderer/render_widget_mus_connection.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +56 lines, -45 lines 0 comments Download
M content/renderer/render_widget_window_tree_client_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/renderer_main.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 52 (17 generated)
Peng
https://codereview.chromium.org/1472063007/diff/1/content/browser/renderer_host/render_widget_host_view_mus.cc File content/browser/renderer_host/render_widget_host_view_mus.cc (right): https://codereview.chromium.org/1472063007/diff/1/content/browser/renderer_host/render_widget_host_view_mus.cc#newcode52 content/browser/renderer_host/render_widget_host_view_mus.cc:52: DoNothing); Looks like in the browser process, this function ...
5 years ago (2015-11-26 22:13:04 UTC) #3
Fady Samuel
+ben@ jam@ for thoughts about mojo v.s. chrome IPC ordering on Monday (Don't worry about ...
5 years ago (2015-11-27 00:26:21 UTC) #5
Fady Samuel
On 2015/11/27 00:26:21, Fady Samuel wrote: > +ben@ jam@ for thoughts about mojo v.s. chrome ...
5 years ago (2015-11-27 04:25:26 UTC) #6
Peng
https://codereview.chromium.org/1472063007/diff/1/content/browser/renderer_host/render_widget_host_view_mus.cc File content/browser/renderer_host/render_widget_host_view_mus.cc (right): https://codereview.chromium.org/1472063007/diff/1/content/browser/renderer_host/render_widget_host_view_mus.cc#newcode54 content/browser/renderer_host/render_widget_host_view_mus.cc:54: factory.WaitForIncomingResponse(); I think WaitForImcomingResponse() should block current thread until ...
5 years ago (2015-11-27 15:08:03 UTC) #7
Fady Samuel
On 2015/11/27 15:08:03, Peng wrote: > https://codereview.chromium.org/1472063007/diff/1/content/browser/renderer_host/render_widget_host_view_mus.cc > File content/browser/renderer_host/render_widget_host_view_mus.cc (right): > > https://codereview.chromium.org/1472063007/diff/1/content/browser/renderer_host/render_widget_host_view_mus.cc#newcode54 > ...
5 years ago (2015-11-27 22:12:45 UTC) #8
Fady Samuel
So close! Thanks Peng! https://codereview.chromium.org/1472063007/diff/90001/content/browser/renderer_host/render_widget_host_view_mus.cc File content/browser/renderer_host/render_widget_host_view_mus.cc (right): https://codereview.chromium.org/1472063007/diff/90001/content/browser/renderer_host/render_widget_host_view_mus.cc#newcode66 content/browser/renderer_host/render_widget_host_view_mus.cc:66: bounds.set_x(10); Please add a TODO(fsamuel): ...
5 years ago (2015-11-30 23:06:55 UTC) #12
Fady Samuel
https://codereview.chromium.org/1472063007/diff/90001/content/renderer/render_widget_mus_connection.h File content/renderer/render_widget_mus_connection.h (right): https://codereview.chromium.org/1472063007/diff/90001/content/renderer/render_widget_mus_connection.h#newcode34 content/renderer/render_widget_mus_connection.h:34: static RenderWidgetMusConnection* Get(int routing_id); nit: I usually prefer GetOrCreate ...
5 years ago (2015-11-30 23:19:19 UTC) #13
Peng
https://codereview.chromium.org/1472063007/diff/90001/content/browser/renderer_host/render_widget_host_view_mus.cc File content/browser/renderer_host/render_widget_host_view_mus.cc (right): https://codereview.chromium.org/1472063007/diff/90001/content/browser/renderer_host/render_widget_host_view_mus.cc#newcode66 content/browser/renderer_host/render_widget_host_view_mus.cc:66: bounds.set_x(10); On 2015/11/30 23:06:54, Fady Samuel wrote: > Please ...
5 years ago (2015-12-01 15:22:47 UTC) #14
Fady Samuel
Please make this bug 551250. LGTM. I'm happy with this modulo the nit. You can ...
5 years ago (2015-12-01 15:52:27 UTC) #15
Peng
https://codereview.chromium.org/1472063007/diff/110001/content/renderer/render_widget_mus_connection.cc File content/renderer/render_widget_mus_connection.cc (right): https://codereview.chromium.org/1472063007/diff/110001/content/renderer/render_widget_mus_connection.cc#newcode32 content/renderer/render_widget_mus_connection.cc:32: int routing_id) On 2015/12/01 15:52:27, Fady Samuel wrote: > ...
5 years ago (2015-12-01 15:54:47 UTC) #16
Peng
Ben & John, PTAL. Thanks.
5 years ago (2015-12-01 15:55:19 UTC) #17
Ben Goodger (Google)
https://codereview.chromium.org/1472063007/diff/130001/content/browser/renderer_host/render_widget_host_view_mus.cc File content/browser/renderer_host/render_widget_host_view_mus.cc (right): https://codereview.chromium.org/1472063007/diff/130001/content/browser/renderer_host/render_widget_host_view_mus.cc#newcode66 content/browser/renderer_host/render_widget_host_view_mus.cc:66: // TODO(fsamuel): figure out position. I suspect you'll end ...
5 years ago (2015-12-01 18:44:15 UTC) #19
Peng
https://codereview.chromium.org/1472063007/diff/130001/content/browser/renderer_host/render_widget_host_view_mus.cc File content/browser/renderer_host/render_widget_host_view_mus.cc (right): https://codereview.chromium.org/1472063007/diff/130001/content/browser/renderer_host/render_widget_host_view_mus.cc#newcode66 content/browser/renderer_host/render_widget_host_view_mus.cc:66: // TODO(fsamuel): figure out position. On 2015/12/01 18:44:14, Ben ...
5 years ago (2015-12-01 19:41:39 UTC) #20
Ben Goodger (Google)
lgtm
5 years ago (2015-12-01 20:13:23 UTC) #21
Ben Goodger (Google)
On 2015/12/01 20:13:23, Ben Goodger (Google) wrote: > lgtm btw jam sez he doesn't need ...
5 years ago (2015-12-01 20:16:48 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1472063007/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1472063007/150001
5 years ago (2015-12-01 20:26:39 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/73599)
5 years ago (2015-12-01 22:08:23 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1472063007/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1472063007/170001
5 years ago (2015-12-01 22:20:08 UTC) #31
Ben Goodger (Google)
https://codereview.chromium.org/1472063007/diff/190001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/1472063007/diff/190001/content/renderer/render_widget.cc#newcode1022 content/renderer/render_widget.cc:1022: if (MojoShellConnection::Get()->GetApplication() && !use_software) { you should null check ...
5 years ago (2015-12-01 22:46:58 UTC) #32
Fady Samuel
On 2015/12/01 22:46:58, Ben Goodger (Google) wrote: > https://codereview.chromium.org/1472063007/diff/190001/content/renderer/render_widget.cc > File content/renderer/render_widget.cc (right): > > ...
5 years ago (2015-12-01 22:47:46 UTC) #33
Fady Samuel
On 2015/12/01 22:47:46, Fady Samuel wrote: > On 2015/12/01 22:46:58, Ben Goodger (Google) wrote: > ...
5 years ago (2015-12-01 22:48:50 UTC) #34
Ben Goodger (Google)
On 2015/12/01 22:48:50, Fady Samuel wrote: > On 2015/12/01 22:47:46, Fady Samuel wrote: > > ...
5 years ago (2015-12-01 22:52:04 UTC) #35
Peng
On 2015/12/01 22:52:04, Ben Goodger (Google) wrote: > On 2015/12/01 22:48:50, Fady Samuel wrote: > ...
5 years ago (2015-12-02 00:44:48 UTC) #36
Ben Goodger (Google)
On 2015/12/02 00:44:48, Peng wrote: > On 2015/12/01 22:52:04, Ben Goodger (Google) wrote: > > ...
5 years ago (2015-12-02 01:03:18 UTC) #37
Peng
On 2015/12/02 01:03:18, Ben Goodger (Google) wrote: > On 2015/12/02 00:44:48, Peng wrote: > > ...
5 years ago (2015-12-02 16:14:25 UTC) #38
Fady Samuel
https://codereview.chromium.org/1472063007/diff/210001/content/public/common/BUILD.gn File content/public/common/BUILD.gn (right): https://codereview.chromium.org/1472063007/diff/210001/content/public/common/BUILD.gn#newcode69 content/public/common/BUILD.gn:69: ":mojo_shell_client", Don't put this in public because consumers of ...
5 years ago (2015-12-02 16:20:33 UTC) #39
Ben Goodger (Google)
lgtm with fady's comments addressed
5 years ago (2015-12-02 16:22:34 UTC) #40
Peng
https://codereview.chromium.org/1472063007/diff/210001/content/public/common/BUILD.gn File content/public/common/BUILD.gn (right): https://codereview.chromium.org/1472063007/diff/210001/content/public/common/BUILD.gn#newcode69 content/public/common/BUILD.gn:69: ":mojo_shell_client", On 2015/12/02 16:20:33, Fady Samuel wrote: > Don't ...
5 years ago (2015-12-02 16:33:32 UTC) #41
Fady Samuel
LGTM modulo one comment to address. Thanks! https://codereview.chromium.org/1472063007/diff/230001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/1472063007/diff/230001/content/browser/renderer_host/render_process_host_impl.cc#newcode126 content/browser/renderer_host/render_process_host_impl.cc:126: #include "content/common/mojo/mojo_shell_connection_impl.h" ...
5 years ago (2015-12-02 16:42:11 UTC) #42
Peng
https://codereview.chromium.org/1472063007/diff/230001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/1472063007/diff/230001/content/browser/renderer_host/render_process_host_impl.cc#newcode126 content/browser/renderer_host/render_process_host_impl.cc:126: #include "content/common/mojo/mojo_shell_connection_impl.h" On 2015/12/02 16:42:11, Fady Samuel wrote: > ...
5 years ago (2015-12-02 16:51:51 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1472063007/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1472063007/250001
5 years ago (2015-12-02 16:52:31 UTC) #46
commit-bot: I haz the power
Committed patchset #14 (id:250001)
5 years ago (2015-12-02 17:58:28 UTC) #48
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/28a5fa2c08f88309e825b46b3b15a345044c712d Cr-Commit-Position: refs/heads/master@{#362745}
5 years ago (2015-12-02 17:59:32 UTC) #50
jam
https://codereview.chromium.org/1472063007/diff/250001/content/public/common/content_switches.h File content/public/common/content_switches.h (right): https://codereview.chromium.org/1472063007/diff/250001/content/public/common/content_switches.h#newcode304 content/public/common/content_switches.h:304: CONTENT_EXPORT extern const char kEnableMojoShellConnection[]; please see the comment ...
5 years ago (2015-12-10 23:24:56 UTC) #51
Peng
5 years ago (2015-12-11 18:47:51 UTC) #52
Message was sent while issue was closed.
https://codereview.chromium.org/1472063007/diff/250001/content/public/common/...
File content/public/common/content_switches.h (right):

https://codereview.chromium.org/1472063007/diff/250001/content/public/common/...
content/public/common/content_switches.h:304: CONTENT_EXPORT extern const char
kEnableMojoShellConnection[];
On 2015/12/10 23:24:56, jam wrote:
> please see the comment 2 lines below, this needs to be put above sorted

In origin cl, "#if defined(MOJO_SHELL_CLIENT)" is around this switch. But the
#ifdef was removed during reviewing, but I forgot moving it to the right
position. Sorry about that.

Powered by Google App Engine
This is Rietveld 408576698