Expose GPUSupport (specifically panel_fitting) to ash |
|||||||||
Issue descriptionGPUSupport may not make sense in the mus world, this bug is against making that decision and if necessarily providing the implementation.
,
Apr 18 2017
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?
,
May 5 2017
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?
,
May 5 2017
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.
,
May 5 2017
,
May 5 2017
,
May 18 2017
+sadrul Would you happen to know if we need GpuSupport::IsPanelFittingDisabled(), and if so, who knows the state of it? mus?
,
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.
,
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?
,
May 25 2017
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)
,
May 25 2017
Ok. I'm updating the title slightly. Who should own this?
,
May 25 2017
kylechar@ is a good choice
,
Jun 5 2017
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.
,
Jun 5 2017
How come this isn't needed for mushrome? Mushrome uses DisplayConfigurator too, right?
,
Jun 5 2017
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.
,
Aug 25 2017
,
Nov 3 2017
,
Nov 6 2017
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 |
|||||||||
Comment 1 by bugdroid1@chromium.org
, Sep 16 2016