Thiago Marcos P. Santos
0c460a5590
[android] Refcount the view activations
...
Fixes #5836
Fixes #5721
2016-08-06 12:58:59 -04:00
Tobrun Van Nuland
6016b2981e
[android] SurfaceView compatible snapshot api
...
[android] #5587 - snapshot API on surface view, create Bitmap with a ByteBuffer
[android] #5587 - write bitmap to external storage
PreMultipliedImage approach
callback implemented
clean up code
introduce bitmap reuse
cleanup
renaming surfaceContent to bitmap
2016-08-03 14:55:45 -04:00
Tobrun
7d0d09e7dc
[android] - fix black screen issue
2016-05-09 16:44:49 +02:00
Thiago Marcos P. Santos
7d80690f91
[android] Restore prior GLContext if exists
...
Apparently some versions of Android, notable 4.4.4 running
on my Nexus 5, creates a GLContext on the Android UIThread
which is the one we are now using for rendering after #2909 .
If the context is not restored, nothing gets rendered (or
sometimes partially, or artifacts) because Android will try
to do GL stuff on the context used by Mapbox GL and mess things up.
2016-04-18 18:57:20 +03:00
Thiago Marcos P. Santos
ba3125142e
[android] Make the correct GL context current
2016-04-14 13:51:27 -07:00
Thiago Marcos P. Santos
7b3c61f619
[android] Do not attach/detach to threads
...
Not needed as everything is now running on the same thread.
2016-04-14 13:51:27 -07:00
John Firebaugh
204c7fee03
[core] Render from the main thread
...
Do not create a thread for the MapContext anymore.
2016-04-14 13:44:08 -07:00
John Firebaugh
5eda74a514
Merge branch 'release-ios-3.2.0-android-4.0.0'
2016-03-30 17:43:37 -07:00
Antonio Zugaldia
682b404bf6
[android] Unify cache and offline databases
...
See #4362
2016-03-21 10:55:54 -07:00
John Firebaugh
1593b962ed
[android] Throw C++ exceptions by value, not by pointer
...
Refs #4385
2016-03-18 16:29:22 -07:00
Tobrun
20c3706536
[android] #4240 - add flag to resize only when needed.
2016-03-08 08:06:55 -05:00
Tobrun
e9b7cd724f
[android] #3631 - resize fix issue
2016-03-07 21:47:40 -05:00
Tobrun
46986c665e
[android] #2996 - test workaround for device not sharing context
2016-03-07 21:46:11 -05:00
Konstantin Käfer
2f06ca74e2
[core] move platform/gl.hpp to gl/gl.hpp
2016-02-08 12:50:00 +01:00
Larry Geromegnace
c114ed6562
[android] Add API to be able to set insets on MapView.
2016-01-27 10:57:38 -06:00
John Firebaugh
5a7d2fd60e
[core] Eliminate platform::assetRoot()
...
I regenerated assets.zip so that all file paths have an `assets/` prefix, as the Android AssetFileSource implementation asserts, and removed `TEST_DATA` from the paths.
2016-01-13 13:40:31 -08:00
John Firebaugh
e7b0b31d58
[core] Privatize SQLiteCache
2016-01-08 12:31:13 -08:00
John Firebaugh
2b782308e5
[android] Simplify structure for native files
2015-12-16 16:06:45 -08:00