Great, that works. Also have WebGL enabled now.
Thanks for the great support.
Dave
On 6-6-2014 9:15, Smith, Elliot wrote:
Hello Dave,
On 5 June 2014 20:14, Dave Richardson <[email protected]
<mailto:[email protected]>> wrote:
With all respect, is this verified to work?
Apologies, this is my mistake. I have just attempted the same and got
the same result (WebGL not enabled). I tried with version 6 Crosswalk.
My mistake was to suggest that you put xwalk-command-line into the
www/ directory. Once this is merged into the apk file during a Cordova
build, the xwalk-command-line file ends up in the incorrect directory
(assets/www, rather than assets/).
The solution is to put the xwalk-command-line file directly into
platforms/android/assets and then do the Cordova build. I just tested
this on my setup and it appears to work correctly.
Apologies again.
Elliot
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]
<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