Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[android] NativeMapView.addImage without copying bitmap into Java - #11000

Closed
jaegs wants to merge 1 commit into
mapbox:masterfrom
jaegs:bitmaps
Closed

jaegs wants to merge 1 commit into
mapbox:masterfrom
jaegs:bitmaps

Conversation

@jaegs

@jaegs jaegs commented Jan 23, 2018

Copy link
Copy Markdown

Bitmaps bytes are stored in native memory. NativeMapView.addImage was copying the bitmap from native to Java and then back to native. Using Bitmap::GetImage keeps the bitmap in native only.

I tested some small bitmaps on a pixel and it saved .3ms each.

@kkaefer @tobrun

@jaegs jaegs changed the title NativeMapView.addImage without copying bitmap into Java [android] NativeMapView.addImage without copying bitmap into Java Jan 23, 2018
@tobrun tobrun added the Android Mapbox Maps SDK for Android label Jan 24, 2018
@tobrun tobrun added this to the android-v6.0.0 milestone Jan 24, 2018
@tobrun

tobrun commented Jan 25, 2018

Copy link
Copy Markdown
Member

@ivovandongen would you be able to review this PR?
I'm seeing that you added the initial implementation here

@tobrun

tobrun commented Feb 2, 2018

Copy link
Copy Markdown
Member

Thank you for this PR @jaegs! I'm following up on this PR in #11111

@tobrun tobrun closed this Feb 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Android Mapbox Maps SDK for Android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants