在Android的WebView中启用WebGL [英] Enable WebGL in Android WebView

查看:4202
本文介绍了在Android的WebView中启用WebGL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何启用的WebView小部件的WebGL为Android 5.1.1模拟器?我查了WebGL的状态通过 Webglreport 和结果是该浏览器支持WebGL的,但它被禁用或不可用。有时候,这是旧的视频驱动程序的结果由浏览器被拒绝。尝试更新如果可能的话您的视频驱动程序。

How to enable WebGL in WebView widget for Android 5.1.1 emulator? I checked WebGL status through Webglreport and the result was "This browser supports WebGL, but it is disabled or unavailable. Sometimes this is the result of older video drivers being rejected by the browser. Try updating your video drivers if possible".

我也尝试使用人行横道的WebView在Android 4.4.4模拟器,并有同样的问题,但我固定它通过添加xwalk的命令行 xwalk --ignore-GPU黑名单。是否有可能使标准的WebView小部件相似的地方?

I also tried to use Crosswalk webview on Android 4.4.4 emulator and there were same problems, but I fixed it by adding xwalk-command-line xwalk --ignore-gpu-blacklist. Is it possible to make something similar for standard WebView widget?

推荐答案

更​​新:web视图小组说的WebView不允许GPU黑名单覆盖,现在或未来的计划,由于安全/稳定风险:的更多详细信息

UPDATE: The WebView team says WebView does not allow gpu blacklist override, now or in future plans, due to security/stability risks: more details.

//

Android版Chrome 47和铬/的WebView 47使用不同的GPU黑名单和/或错误的解决方法。什么是允许在一个成功地呈现可能不允许在其他成功渲染甚至在相同的硬件。两种浏览器都将公布更新到Play商店每6周。

Chrome for Android 47 and Chromium/WebView 47 use different gpu blacklists and/or bug workarounds. What is allowed to successfully render in one may not be allowed to successfully render in the other even on the same hardware. Both browsers are scheduled to release updates to the Play Store every 6 weeks.

例如:我有一台Nexus 10,马里T-604平板电脑(棒棒堂5.1.1另外,Android的工作室1.5.1 SDK与棉花糖6.0 API 23或22)。

For example: I have a Nexus 10, Mali T-604 tablet (Lollipop 5.1.1. Also, Android Studio 1.5.1 with SDK 6.0 Marshmallow API 23 or 22).

在Android版Chrome -

In Chrome for Android --


  • 镀铬://标志,#忽略GPU的黑名单未启用,所有复位默认值

  • 镀铬:// GPU,图形功能状态,WebGL的:硬件加速,令人惊讶的复位通知策略为0x0000(见最后<一个href=\"http://stackoverflow.com/questions/30844557/supporting-webgl-on-android-5s-webview/30916299#30916299\">Crosswalk相关)答案

  • webglreport,这个浏览器支持WebGL的1

  • get.webgl.org,立方体旋转

在web视图 -


  • webglreport,这个浏览器支持WebGL的1,但它被禁用或不可用。有时候,这是旧的视频驱动程序被浏览器拒绝的结果。如果可能,尝试更新您的视频驱动程序。

  • get.webgl.org,嗯,当你的浏览器似乎支持WebGL,它被禁用或不可用。如果可能的话,请确保您运行的是你的显卡的最新驱动程序。

铬黑名单(从Khronos的WebGL的黑名单维基链接):GPU光栅化和帆布被列入黑名单在Nexus 10

chromium blacklist (link from Khronos WebGL blacklist wiki): "GPU rasterization and canvas is blacklisted on Nexus 10".

铬的bug列表(由Khronos的WebGL的黑名单维基链接):马里-TXXX驱动程序不保证冲洗排序和从当前显示缓冲区中读取时的Mali-TXXX司机挂

chromium bug list (link from Khronos WebGL blacklist wiki): "The Mali-Txxx driver does not guarantee flush ordering" and "The Mali-Txxx driver hangs when reading from currently displayed buffer".

在像素C片剂具有不出现在名单铬,除非ID一的NVIDIA Tegra X1:96是指它

The Pixel C tablet has a Nvidia Tegra X1 which does not appear on the chromium lists, unless "id": 96 refers to it.

这篇关于在Android的WebView中启用WebGL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆