Good to hear that Crosswalk 6 should increase performance. In the meantime I found a workaround with Crosswalk 5: pdf.js creates a text node overlay to enable text selection, which consists of thousands of divs. Disabling this gives a huge boost in scrolling performance.
I have one additional question: the Cordova Crosswalk CLI migrate instructions on the website only work with Crosswalk 5/Cordova 3.3. When executing the same commands with Crosswalk 6/Cordova 3.4 the build fails on the second "ant debug" command. Are there updated instructions already for either Crosswalk 6/Cordova 3.4 or Crosswalk 7/Cordova 3.5? On Tue, Jun 17, 2014 at 4:00 AM, Hu, Ningxin <[email protected]> wrote: > Hi Rick, > > > > I've tested pdf.js demo with Crosswalk-6 beta release (Cordova 3.5.0) on > Nexus 5. The performance is pretty good (on par with Chrome 35). > > > > I am listing my steps for your reference: > > 1. Download latest Cordova bundle of Crosswalk-6 beta version > > a) x86: > https://download.01.org/crosswalk/releases/crosswalk/android/beta/6.35.131.11/x86/crosswalk-cordova-6.35.131.11-x86.zip > > b) ARM: > https://download.01.org/crosswalk/releases/crosswalk/android/beta/6.35.131.11/arm/crosswalk-cordova-6.35.131.11-arm.zip > > 2. Open a console and export ADT path > > a) E.g. export PATH=${PATH}:/path_to_adt/sdk/tools/:/path_to_adt > /sdk/platform-tools/ > > 3. Create app template > > a) E.g. ./crosswalk-cordova-6.35.131.11-arm/bin/create pdf > org.example.pdf pdf > > 4. Edit res/xml/config.xml, set <content src=" > http://mozilla.github.io/pdf.js/web/viewer.html" /> > > 5. ./cordova/build and ./cordova/run > > > > Thanks for trying Crosswalk, > > -ningxin > > > > *From:* Crosswalk-help [mailto: > [email protected]] *On Behalf Of *Rick > Laman > *Sent:* Monday, June 16, 2014 11:42 PM > *To:* [email protected] > *Subject:* [Crosswalk-help] pdf.js canvas performance with Cordova > Crosswalk > > > > I've got a fairly complex problem, because it's dependent on a number of > factors. I have a Cordova HTML5 app, which uses Mozilla's pdf.js to show > PDF's in-app. This works quite good, but scroll and pan performance is poor > (on a Nexus 7 2013). I've tested pdf.js's viewer in the Chrome browser too, > and to my surprise scrolling was silky smooth! > > > > After some searching (triggered by reports that Android 4.4 webview's > canvas performance is quite bad) I found Crosswalk. After some fiddling (I > used Cordova 3.5, which I could not get to work with Crosswalk 7: > apparently the cmd line instructions on the website only work with Cordova > 3.3/Crosswalk 5) I got things to work, but to my surprise scrolling was > still sluggish! > > > > Now I'm a bit stuck because I can't find a reason why performance in the > Crosswalk Chromium view is so much worse than in the Chrome browser. I > already found the ignore GPU blacklisting option, but since I'm stuck on > Crosswalk 5 I don't think there is an easy way to pass this option to > Chromium. Also, it would surprise me if the Nexus 7 2013 is blacklisted > (it's not actually a whitelist, right?) Is there a way to see if hardware > acceleration is actually used? > > > > I hope someone can give me some pointers. > > _______________________________________________ > Crosswalk-help mailing list > [email protected] > https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help > >
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
