New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 711951 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Feature

Blocking:
issue 731255



Sign in to add a comment

Mus: Refactor device emulation plumbing

Project Member Reported by fsam...@chromium.org, Apr 15 2017

Issue description

There is a bunch of device emulation code that plumbs sizing information that doesn't correspond to window size changes (from Mus' perspective). 

On the renderer side, this is: RenderWidgetScreenMetricsEmulator.
https://cs.chromium.org/chromium/src/content/renderer/devtools/render_widget_screen_metrics_emulator.h?gsn=RenderWidgetScreenMetricsEmulator&l=1

On the browser side, this is EmulationHandler.
https://cs.chromium.org/chromium/src/content/browser/devtools/protocol/emulation_handler.cc?type=cs&q=EnableDeviceEmulation&l=1

We need to figure out what we want to do with those in a Mus+Ash/Mushrome environment. Perhaps we can integration device emulation in the window server?

Note that this also impacts compositing logic because it interacts with surface synchronization.

 
Status: Available (was: Untriaged)

Comment 2 by sky@chromium.org, Apr 17 2017

Labels: -Pri-3 mustash-2 Proj-Mustash-Mus Proj-Mustash-Chrome Pri-2

Comment 3 by sadrul@chromium.org, Apr 18 2017

I am not sure about surface sync, but I don't think we need to do anything here for mushrome for screen/touch etc. emulation. The emulation happens between browser and renderer (and affects only browser), and should continue to work.

For the longer term, the emulation should indeed live in the window server.

Can we create a narrower-scoped bug for surface-sync for mushrome?
Labels: Type-Feature
So the problem with surface sync is the surface ID needs to be allocated in the browser ID for the renderer and then passed along for resize. With screen metrics emulator, we are resizing the RenderWidget in the renderer without going through the browser process. This needs to change.
Cc: weiliangc@chromium.org
Cc: varkha@chromium.org

Comment 8 by sky@chromium.org, Jun 8 2017

Blocking: 731255
Status: WontFix (was: Available)
After some digging, it seems that we don't need to do anything here because Blink is producing a full sized frame so no resize is actually happening...I'm not sure why we're bundling device emulation along with resize..maybe we should refactor that code but this is not blocking viz or mushrome.
Blocking: -601863
Components: -Internals>MUS Internals>Services>WindowService

Sign in to add a comment