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

Issue 647421 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Closed: Nov 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocked on:
issue 683226



Sign in to add a comment

Expose GPUSupport (specifically panel_fitting) to ash

Project Member Reported by sky@chromium.org, Sep 15 2016

Issue description

GPUSupport may not make sense in the mus world, this bug is against making that decision and if necessarily providing the implementation.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Sep 16 2016

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

Blocking: 706589
Cc: rjkroege@chromium.org kylec...@chromium.org
Labels: -Pri-3 mustash-2 Proj-Mustash-Mus Pri-2
GpuSupport has the single function IsPanelFittingDisabled(), which is wired through to (in classic ash with content):

  return content::GpuDataManager::GetInstance()->IsFeatureBlacklisted(
      gpu::GPU_FEATURE_TYPE_PANEL_FITTING);

I believe we need this for simplified display mode. Assuming that is true, we'll likely want mus to tell ash about this during startup.
Kyle, does that make sense? Does mus know this information?
All that GpuSupport::IsPanelFittingDisabled() ends up doing is checking the command line flag switches::kDisablePanelFitting on CrOS.

https://cs.chromium.org/chromium/src/content/browser/gpu/gpu_data_manager_impl_private.cc?sq=package:chromium&dr=CSs&l=340

So we could just not use GpuSupport in Shell::Init() and check the command line flag?



Actually, I'm not 100% sure about switches::kDisablePanelFitting being the only thing that disables/enables panel fitting on Chrome OS. 

We would never use swiftshader on device and I don't see GPU_FEATURE_TYPE_PANEL_FITTING getting added to the blacklist anywhere, so I think this is the case, but would need to look further.
Cc: -kylec...@chromium.org
Status: kylecharchromium.org (was: Untriaged)
Owner: kylec...@chromium.org
Status: Assigned (was: kylecharchromium.org)

Comment 7 by sky@chromium.org, May 18 2017

Cc: sadrul@chromium.org
+sadrul
Would you happen to know if we need GpuSupport::IsPanelFittingDisabled(), and if so, who knows the state of it? mus?

Comment 8 by sadrul@chromium.org, May 23 2017

The gpu-host would have this information, correct (i.e. mus, or chrome-browser).

> I don't see GPU_FEATURE_TYPE_PANEL_FITTING getting added to the blacklist
> anywhere

I think the blacklist can be loaded from some json file (or auto-generated file)? So we may not want to depend on that assumption.

Comment 9 by sky@chromium.org, May 25 2017

It looks like this routes through content apis. We should have that in mushrome, but not mash, right? I think this should just work in mushrome, but I'm not sure who knows this information in mash. Any suggestions?
For both mushrome and mustash, this information will need to be available to ui::GpuHost. Some refactor work is needed to move the relevant code out of content/ (issue 683226)

Comment 11 by sky@chromium.org, May 25 2017

Summary: Expose GPUSupport (specifically panel_fitting) to ash (was: Decide if GPUSupport needs mus implementation)
Ok. I'm updating the title slightly. Who should own this?
kylechar@ is a good choice
For mushrome with ash, chrome and mus-ws in the same process this shouldn't require any changes I don't think.

For mustash with simplified display management this is blocked on issue 683226. Once mus-ws has a GpuDataManager instance it would be possible to send something over IPC that specifies if GPU panel fitting is disabled but that presents a new problem.

GpuSupport::IsPanelFittingDisabled() is checked for DisplayConfigurator::Init() which is on the critical path for ash startup. So it will slow down startup times. Basically the same problem as getting the initial list of DisplaySnapshots presents.

Comment 14 by sky@chromium.org, Jun 5 2017

How come this isn't needed for mushrome? Mushrome uses DisplayConfigurator too, right?
I was confused about how mushrome would be architected. If GpuDataManager lives in mus-ws portion for mushrome then we would need a similar solution to mustash.

Comment 16 by sky@chromium.org, Jun 21 2017

Blocking: -706589 731255
Blockedon: 683226

Comment 18 by sky@chromium.org, Nov 3 2017

Blocking: -731255

Comment 19 by zmo@chromium.org, Nov 6 2017

Cc: marc...@chromium.org piman@chromium.org
Status: WontFix (was: Assigned)
We are getting rid of Panel fitting for ChromeOS, and GPUSupport is only there for panel fitting blacklisting and will be removed as well.

Sign in to add a comment