抱歉,该网页目前还不存在中文版本,请继续浏览其他网页!

Crosswalk Project 12 Beta: Chromium 41, new SIMD.js and Embedding APIs

We are happy to announce that version 12 of the Crosswalk Project for Android is in Beta. This release sees an update to Chromium 41 and introduces some new functionality in the Embedding and SIMD.js API. As usual, we welcome feedback on the crosswalk-help mailing list or JIRA.

Chromium 41

With this release Crosswalk Project is updated to Chromium 41, which brings new ES6 template literals and new debugging features for CSS Animation and Service Worker. Read more about Chromium 41 in this announcement.

For a list of new features in Chromium 41, check the Chromium Dashboard

Embedding API updates

XWalkView

Set the User Agent string of the application:

void setUserAgentString(String userAgent)

Use XWalkView.setBackgroundColor(0) to make the XWalkView transparent (XWALK-3308)

XWalkUIClient

Notify the host application of a console message.:

void onConsoleMessage(XWalkView view, String message, int lineNumber, String sourceId, ConsoleMessageType messageType)

SIMD updates

The SIMD.js API now implements load and store of data types. These APIs allow developers to load or store all or partial elements of SIMD data from or to variable typed arrays and are important for several use cases:

Adds "ByScalar" suffix to shift operations according to the latest SIMD.js spec. It clarifies that their shift count is a scalar value, and to make namespace room for adding vector-vector shifts in the future.

SIMD.int32x4.shiftLeftByScalar
SIMD.int32x4.shiftRightLogicalByScalar
SIMD.int32x4.shiftRightArithmeticByScalar

SIMD.js introduces new swizzle and shuffle APIs to rearrange lanes in SIMD data types. They include:

SIMD.float32x4.swizzle
SIMD.float32x4.shuffle
SIMD.float64x2.swizzle
SIMD.float64x2.shuffle
SIMD.int32x4.swizzle
SIMD.int32x4.shuffle

Full release notes in Jira

Download Crosswalk 12 from the Beta Channel

Get more hybrid app secrets

Build powerful hybrid apps for Android or Cordova / PhoneGap more reliably with tips from the Intel Crosswalk team.