Hello Dave.

On 4 June 2014 11:51, Dave Richardson <[email protected]> wrote:

> I've followed the guide on crosswalk-project.org to build a Cordova app
> with Crosswalk web view.
> It works, but I've noticed that WebGL is not supported or enabled by
> default. How can I enable it?
> I am using Cordova 3.3 and the framework files of Crosswalk 5.34.
>

Depending on the device, Crosswalk may blacklist its CPU so that WebGL is
not enabled by default (I'm adding a note about this to the FAQ this week,
in fact). This is to prevent an application causing the web runtime to
freeze (or potentially freeze the whole system) or cause other types of
instability.

You can work around this by adding a file called xwalk-command-line to the
root directory of the web piece of your application (in a Cordova app, this
would be the www/ directory). This file can contain a custom command-line
for your application. To enable WebGL you can tell Crosswalk to ignore the
GPU blacklist:

xwalk --ignore-gpu-blacklist

This is not recommended for production applications, however.

Hope this helps, and thanks for trying Crosswalk.
Elliot


>
> Thanks,
> Dave Richardson
> _______________________________________________
> Crosswalk-help mailing list
> [email protected]
> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
>



-- 
Elliot Smith
Senior Software Engineer
Intel Open Source Technology Centre
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to