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

Issue 2878113002: mus: Embedder can request and observe BeginFrame for embedded client. (Closed)

Created:
3 years, 7 months ago by sadrul
Modified:
3 years, 6 months ago
Reviewers:
danakj, Fady Samuel, sky
CC:
chromium-reviews, rjkroege, qsr+mojo_chromium.org, danakj+watch_chromium.org, viettrungluu+watch_chromium.org, nona+watch_chromium.org, shuchen+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, jbauman+watch_chromium.org, Aaron Boodman, darin-cc_chromium.org, piman+watch_chromium.org, kalyank, cc-bugs_chromium.org, James Su, darin (slow to review), yusukes+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

mus: Embedder can request and observe BeginFrame for embedded client. For telemetry tests, the browser needs to receive begin-frame messages for the embedded renderer so that it can dispatch synthesized input events. This CL introduces cc.mojom.FrameSinkObserver to support that. The embedder installs the observer in GpuCompositorFrameSink through the WindowTree (which verifies that the client requesting this is allowed to do so). BUG=721920 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 12

Patch Set 4 : . #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -6 lines) Patch
M cc/ipc/mojo_compositor_frame_sink.mojom View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M components/viz/frame_sinks/gpu_compositor_frame_sink.h View 1 2 3 3 chunks +4 lines, -0 lines 0 comments Download
M components/viz/frame_sinks/gpu_compositor_frame_sink.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M components/viz/frame_sinks/gpu_root_compositor_frame_sink.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/viz/frame_sinks/gpu_root_compositor_frame_sink.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 2 chunks +13 lines, -6 lines 0 comments Download
M services/ui/public/interfaces/window_tree.mojom View 1 2 3 2 chunks +5 lines, -0 lines 1 comment Download
M services/ui/ws/server_window_compositor_frame_sink_manager.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/server_window_compositor_frame_sink_manager.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree.cc View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M ui/aura/local/window_port_local.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/local/window_port_local.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/mus/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/mus/window_port_mus.h View 3 chunks +6 lines, -0 lines 0 comments Download
M ui/aura/mus/window_port_mus.cc View 1 2 3 3 chunks +35 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M ui/aura/test/mus/test_window_tree.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/test/mus/test_window_tree.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/window.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/window.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/window_port.h View 1 chunk +5 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 31 (16 generated)
sadrul
sky@ Please review aura, ws changes. danakj@ and fsamuel@ Please review viz changes.
3 years, 7 months ago (2017-05-12 21:39:52 UTC) #5
sadrul
After discussing offline with Fady, moved the new API into mojom.MojoCompositorFrameSinkPrivate (instead of mojom.FrameSinkManager). PTAL ...
3 years, 7 months ago (2017-05-12 22:22:09 UTC) #11
Fady Samuel
https://codereview.chromium.org/2878113002/diff/40001/cc/ipc/mojo_compositor_frame_sink.mojom File cc/ipc/mojo_compositor_frame_sink.mojom (right): https://codereview.chromium.org/2878113002/diff/40001/cc/ipc/mojo_compositor_frame_sink.mojom#newcode87 cc/ipc/mojo_compositor_frame_sink.mojom:87: RequestBeginFrame(FrameSinkObserver observer); nit: RequestBeginFrames https://codereview.chromium.org/2878113002/diff/40001/components/viz/frame_sinks/gpu_root_compositor_frame_sink.cc File components/viz/frame_sinks/gpu_root_compositor_frame_sink.cc (right): https://codereview.chromium.org/2878113002/diff/40001/components/viz/frame_sinks/gpu_root_compositor_frame_sink.cc#newcode109 ...
3 years, 7 months ago (2017-05-12 22:42:55 UTC) #12
sadrul
https://codereview.chromium.org/2878113002/diff/40001/cc/ipc/mojo_compositor_frame_sink.mojom File cc/ipc/mojo_compositor_frame_sink.mojom (right): https://codereview.chromium.org/2878113002/diff/40001/cc/ipc/mojo_compositor_frame_sink.mojom#newcode87 cc/ipc/mojo_compositor_frame_sink.mojom:87: RequestBeginFrame(FrameSinkObserver observer); On 2017/05/12 22:42:55, Fady Samuel wrote: > ...
3 years, 7 months ago (2017-05-13 03:01:38 UTC) #16
sky
https://codereview.chromium.org/2878113002/diff/2/services/ui/public/interfaces/window_tree.mojom File services/ui/public/interfaces/window_tree.mojom (right): https://codereview.chromium.org/2878113002/diff/2/services/ui/public/interfaces/window_tree.mojom#newcode117 services/ui/public/interfaces/window_tree.mojom:117: RequestBeginFrames(uint32 window_id, cc.mojom.FrameSinkObserver observer); The browser and renderer already ...
3 years, 7 months ago (2017-05-14 16:26:58 UTC) #21
Fady Samuel
On 2017/05/14 16:26:58, sky wrote: > https://codereview.chromium.org/2878113002/diff/2/services/ui/public/interfaces/window_tree.mojom > File services/ui/public/interfaces/window_tree.mojom (right): > > https://codereview.chromium.org/2878113002/diff/2/services/ui/public/interfaces/window_tree.mojom#newcode117 > ...
3 years, 7 months ago (2017-05-15 13:38:36 UTC) #22
sadrul
On 2017/05/15 13:38:36, Fady Samuel wrote: > On 2017/05/14 16:26:58, sky wrote: > > > ...
3 years, 7 months ago (2017-05-15 14:34:23 UTC) #23
danakj
On Mon, May 15, 2017 at 10:34 AM, <sadrul@chromium.org> wrote: > On 2017/05/15 13:38:36, Fady ...
3 years, 7 months ago (2017-05-15 15:21:23 UTC) #24
sadrul
On 2017/05/15 15:21:23, danakj wrote: > On Mon, May 15, 2017 at 10:34 AM, <mailto:sadrul@chromium.org> ...
3 years, 7 months ago (2017-05-15 15:50:30 UTC) #25
danakj
On Mon, May 15, 2017 at 11:50 AM, <sadrul@chromium.org> wrote: > On 2017/05/15 15:21:23, danakj ...
3 years, 7 months ago (2017-05-15 15:55:58 UTC) #26
sadrul
On 2017/05/15 15:55:58, danakj wrote: > On Mon, May 15, 2017 at 11:50 AM, <mailto:sadrul@chromium.org> ...
3 years, 7 months ago (2017-05-15 16:54:05 UTC) #27
danakj
The doc's proposal is to not send input events based on begin frames but to ...
3 years, 7 months ago (2017-05-15 17:27:50 UTC) #28
sadrul
On 2017/05/15 17:27:50, danakj wrote: > The doc's proposal is to not send input events ...
3 years, 7 months ago (2017-05-15 17:54:52 UTC) #29
danakj
On Mon, May 15, 2017 at 1:54 PM, <sadrul@chromium.org> wrote: > On 2017/05/15 17:27:50, danakj ...
3 years, 7 months ago (2017-05-15 18:04:55 UTC) #30
sadrul
3 years, 6 months ago (2017-06-15 17:35:16 UTC) #31
I changed how we dispatch input events in telemetry, so it's not dependent on
begin-frames anymore. The last change landed a couple of weeks back, and seems
to have stuck. So we shouldn't need this change for mus anymore. Closing.

Powered by Google App Engine
This is Rietveld 408576698