Hello,

With all respect, is this verified to work?

I've made an app that checks for WebGL support, and when building it normally with Crosswalk 6 using the --ignore-gpu-blacklist flag it will return true for WebGL support. However, when building with Cordova and Crosswalk 6, the same app returns false.

I put the 'xwalk-command-line' file in the 'www' folder, and contains: 'xwalk --ignore-gpu-blacklist'.

Greetings,

Dave

On 4-6-2014 13:03, Smith, Elliot wrote:
Hello Dave.

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

    I've followed the guide on crosswalk-project.org
    <http://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]
    <mailto:[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