Commit Graph

7 Commits

Author SHA1 Message Date
Chris Loer
f2b42af339 [android] Add Configuration hook for local ideograph font family and demo activity 2017-12-18 12:17:22 -08:00
Pablo Guardiola
b5140cb342 [android] Cherry picks to agua (#10442)
* [android] fix map snapshotter marker example

The reference to the MapSnapshotter needs to be held for the duration of the snapshot, otherwise it might be GC'd

* [android] MapRendererRunnable - avoid weak reference table overflow

Apparently on some devices the weak reference table is limited (numbers around 52000). Even though we don't use that many weak references, when GC is not called for a while they can stack up and a crash will occur before the GC has had the time to clear the references. The C++ peer now holds on to a global ref (strong) which can be obtained to queue the java peer and then release automatically so that the GC can take over after the runnable has been executed.
2017-11-10 12:56:06 +01:00
Ivo van Dongen
18bb6da109 [android] reset renderer on the GL thread when map is destroyed
- ensures cleanup of resources on the right thread
2017-09-22 23:33:56 +03:00
Ivo van Dongen
c17be060fd [android] map snapshots 2017-09-22 23:33:56 +03:00
Ivo van Dongen
8182b26dfe [android] signal renderer when gl surface is re-initialized that gl context is lost 2017-09-22 23:33:56 +03:00
Ivo van Dongen
67285f3a95 [android] Re-initialise renderer, backend and context when the android system destroyed the underlying gl resources 2017-09-22 23:33:56 +03:00
Ivo van Dongen
5d12503302 [android] self-contained map renderer
- Isolates the GL thread in a MapRenderer class with a native peer
2017-09-22 23:33:56 +03:00