简体   繁体   English

Android在webview上显示webgl

[英]Android show webgl on webview

I have URL where is canvas drawed by webGL, I can open and see it with android native browser but there is a problem when I'm trying to open it in my app's webview. 我有URL,它是webGL在画布上绘制的,我可以使用android本机浏览器打开并查看它,但是当我尝试在我的应用程序的webview中打开它时出现问题。 It's showing only gray background. 它仅显示灰色背景。 Does every browser has it's own webGL or what's the problem? 每个浏览器都有自己的webGL还是问题?

Make sure your activity (and the webview) is rendering in hardware accelerated mode . 确保您的活动(和Web视图)以硬件加速模式呈现。 I imagine it's rendering in software mode where WebGL doesn't work. 我想象它是在WebGL不起作用的软件模式下渲染的。

Android Webview does not support webGL. Android Webview不支持webGL。 According to this Android L's WebView vill... 根据这个 Android L的WebView观点...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM