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

Issue 827327 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug

Blocking:
issue 557397



Sign in to add a comment

Mash: enable viz

Project Member Reported by mlamouri@chromium.org, Mar 29 2018

Issue description

Viz doesn't work with mash. With videos using SurfaceLayer, that means that videos are broken.

Tests are failing with the following crashes:
```
base::debug::StackTrace::StackTrace()
#1 0x0000049784c5 content::(anonymous namespace)::DumpStackTraceSignalHandler()
#2 0x7fdbb56d7cb0 <unknown>
#3 0x00000623357c base::flat_map<>::operator[]()
#4 0x000006233462 viz::HostFrameSinkManager::RegisterFrameSinkId()
#5 0x000002deedd3 content::OffscreenCanvasSurfaceImpl::OffscreenCanvasSurfaceImpl()
#6 0x000002dedac7 content::OffscreenCanvasProviderImpl::CreateOffscreenCanvasSurface()
```
 
Cc: sadrul@chromium.org
Fady/Sadrul, is the bug description here accurate? "Viz doesn't work with mash"?

There are dozens-to-hundreds of mash browser_tests disabled due to this issue, see https://chromium-review.googlesource.com/c/chromium/src/+/986053 , which significantly dropped our fraction of passing tests since last month (89% -> 83%).


What is the current stack-trace for the crashes? I can't find OffscreenCanvasProviderImpl or OffscreenCanvasSurfaceImpl in the code anymore.

The browser is able to embed a renderer or exo apps using SurfaceLayer with mash. So there is not fundamental reasons this can't work for pip-videos. I suspect some rewiring needs to happen though. See how the frame-sinks are registered in regular-chrome in WindowPortLocal::CreateLayerTreeFrameSink [1] vs. how it's done with mus in WindowPortMus [2]. I suspect something similar to the latter needs to happen for pip-videos too.

[1] https://cs.chromium.org/chromium/src/ui/aura/local/window_port_local.cc?l=149
[2] https://cs.chromium.org/chromium/src/ui/aura/mus/window_port_mus.cc?l=108
Cc: rcui@chromium.org
Cc: sky@chromium.org
Blocking: 557397

Sign in to add a comment