Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Force hardware acceleration, recalculate layout in another thread #3

Merged
merged 1 commit into from
Mar 29, 2016

Conversation

cicloon
Copy link
Contributor

@cicloon cicloon commented Mar 28, 2016

This improve the rendering performance severely on devices with Android version less than 5.0.

Take a look @lurecas, I'm sure there are more things to improve here.

@cicloon
Copy link
Contributor Author

cicloon commented Mar 28, 2016

I think this is the next thing we should review: mapsplugin/cordova-plugin-googlemaps#835

@@ -192,9 +192,9 @@ public void run() {
e.printStackTrace();
}
*/
if (Build.VERSION.SDK_INT >= 21 || "org.xwalk.core.XWalkView".equals(view.getClass().getName())){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm trying to figure out why they would do this...but I dunno...
Have we tested this with several devices? It's like they are checking that the webview is one of the standard class ( not Crosswalk!)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because XWalkView class does not have setLayerType method.

@lurecas
Copy link
Member

lurecas commented Mar 29, 2016

If this works, all 🍐 from me!

@lurecas
Copy link
Member

lurecas commented Mar 29, 2016

And yes, @cicloon I also think we will have to give a look at some marker clustering options. We are having an increasingly number of cars (especially in LATAM) and I think that it doesn't give you much info to see a lot of icons one top of another. But this need some design input
What do you guys think @ciscou @ropa03 ?

@ciscou
Copy link

ciscou commented Mar 29, 2016

🍴DD

@cicloon cicloon merged commit b160147 into master Mar 29, 2016
@cicloon cicloon deleted the performance-improvements branch March 29, 2016 15:17
@hirbod
Copy link
Contributor

hirbod commented Mar 29, 2016

"org.xwalk.core.XWalkView".equals(view.getClass().getName())" check was added by me and it is important in order to work with Crosswalk. Your fork should not work with crosswalk on specific version anymore

@cicloon
Copy link
Contributor Author

cicloon commented Mar 31, 2016

Hi @hirbod, with crosswalk version 16 the XWalkView class isn't "org.xwalk.core.XWalkView" anymore. And we only use crosswalk to package our app, that's why I deleted that line at all.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants