Not possible to disable or blacklist WebGL2 with --in-process-gpu
Reported by
rog...@opera.com,
Dec 20 2016
|
||
Issue descriptionChrome Version: 57.0.2957.0 OS: Linux (locally built content_shell) What steps will reproduce the problem? (1) ./content_shell --no-sandbox --in-process-gpu --disable-es3-apis http://webglreport.com/?v=2 What is the expected result? WebGL2 should be unsupported. What happens instead? WebGL2 is supported. Please use labels and text to provide additional information. Loading chrome:gpu lists WebGL2 as "Disabled" but it is still possible to use WebGL2. Removing --in-process-gpu makes --disable-es3-apis work as expected. I also tried blacklisting WebGL2, but that also has no effect with --in-process-gpu. I did some digging and found that ES3 APIs are disabled by setting the GpuPreferences::enable_es3_apis to false. This is handled in GpuDataManagerImplPrivate::AppendGpuCommandLine(...) but that function is called without a gpu_preferences parameter in the case of --in-process-gpu which leaves the pref in its default state, which is to enable es3 apis. I did not find a obvious fix for this, GetGpuPreferencesFromCommandLine() seems like a good choice but it does not have access to the feature blacklist status afaict.
,
Dec 21 2016
Fair point, and kind of expected, I thought it deserved a bug at least. But I wonder if this won't also affect WebView? The issue is also reproducible using --single-process which I believe is used in that setup. If that is the case the current WebGL2 blacklist entry for Android won't have an effect.
,
Dec 21 2016
Ah, then we do need to fix this. |
||
►
Sign in to add a comment |
||
Comment 1 by zmo@chromium.org
, Dec 20 2016