Enable WebGL in Android WebView

How to enable WebGL in a WebView widget for Android 5.1.1 emulator? I checked the status of WebGL with Webglreport , and the result was β€œThis browser supports WebGL, but it is disabled or not available. Sometimes it’s the result of the old video drivers rejected by the browser. Try updating the video drivers if possible.

I also tried using Crosswalk webview on Android 4.4.4 emulator, and there were the same problems, but I fixed it by adding an xwalk command line xwalk --ignore-gpu-blacklist. Can I do something similar for a standard WebView widget?

+4
source share
1 answer

UPDATE: WebView , WebView gpu, , - /: .

//

Chrome Android 47 Chromium/WebView 47 gpu / . , , , . Play Store 6 .

: Nexus 10, Mali T-604 (Lollipop 5.1.1. , Android Studio 1.5.1 SDK 6.0 Marshmallow API 23 22).

Chrome Android -

  • chrome://flags, # ignore-gpu-blacklist reset
  • chrome://gpu, " -WebGL: " reset 0x0000 (. )
  • webglreport, " WebGL 1"
  • get.webgl.org, cube spins

WebView -

  • webglreport: " WebGL 1, . , . ".
  • get.webgl.org: ". , , WebGL, . , , ".

( hronos WebGL blacklist wiki): " GPU Nexus 10".

( hronos WebGL blacklist wiki): " Mali-Txxx " " Mali-Txxx ".

Pixel C Nvidia Tegra X1, , , WebGL WebView.. p >

+2

Source: https://habr.com/ru/post/1628140/


All Articles