Commit Graph

539 Commits

Author SHA1 Message Date
Mikhail Pozdnyakov
bef635765a [core] Decouple Scheduler interface from actor model
So that it is possible to schedule normal `std::function` and use `mapbox::base::WeakPtr`.
2019-10-04 17:42:21 +03:00
Alexander Shalamov
198e345339 [android] Check if Mapbox instance exists before creating default file source
This check is needed for mbgl-benchmark target, as it does not require Mapbox
instance, nor Android asset manager.
2019-10-04 13:18:23 +03:00
Alexander Shalamov
18dcf38a7a [android] Remove usage of ResourceOptions::withPlatformContext 2019-09-26 11:37:50 +03:00
Alexander Shalamov
e5cdc4ecf3 [core][android][darwin] Move number format to i18n 2019-09-26 10:55:47 +03:00
Alexander Shalamov
9c8295c6a6 [core][android][darwin] Move platform specific Collator impls from expression
Platform specific Collator implementations should not be part of an expression APIs.
2019-09-26 10:55:47 +03:00
Alexander Shalamov
30ffbe9b8d [core][android] Remove unaccent from platform interfaces
The unaccent is used only within collator, thus, there is no
need to have separate platform interface for it.
2019-09-26 10:55:47 +03:00
Thiago Marcos P. Santos
c7bbd5bbef [core] Fix performance-move-const-arg 2019-09-25 18:59:07 +03:00
Peng Liu
426da3a6af [android] Fix the crash when CameraPosition padding is set. (#15699)
* [android] Add test branch, navigate to Map Snapshotter activity to reproduce the bug.

* [android] Fix the crash when camera position padding is set.
2019-09-23 19:11:00 +03:00
Thiago Marcos P. Santos
a849b38390 [build] Mark explicitly visible symbols
Easier to maintain than a linker script. We build
everything with visibility hidden by default.
2019-09-17 12:28:55 +03:00
Peng Liu
69bc5244ea [android] Fix MapSnapshotter regression and add activity sanity tests (#15580)
* [android] Include more generated sanity tests for Android test app.

* [android] Add null check for camera position padding.

* [android] Skip map load tests if no mapView is found, include more generated sanity tests for Android test app.

* [android] Set mapboxMap to null during the mapView destroy process, fix failed sanity tests.

* [android] Add file source related activities to the sanity test exclude list.

* [android] Fixes according to @tobrun's review.

* [android] Add more activities to exclude list, keep MapSnapshotterActivity for regression test.
2019-09-12 18:17:45 +03:00
Mikhail Pozdnyakov
8af78ddbb9 [core] Update MapObserver::onDidFinishRenderingFrame() API 2019-09-12 00:40:08 +03:00
Mikhail Pozdnyakov
151ea331f8 [core] Use mapbox::base::TypeWrapper instead of utils::peer 2019-09-10 11:51:17 +03:00
Tobrun
ed964fc16b [android] avoid converting float to long in android_conversion.hpp (#15557) 2019-09-04 18:12:12 +03:00
Łukasz Paczos
becc705f05 [android] expose camera padding option
This removes the cached insets on the Android side, making the core TransformState the source of truth. This still leaves an option to lazily set the padding which is going to be applied only when the next camera animation is started.
2019-08-29 14:51:24 +02:00
Ander Conselvan de Oliveira
21632a66f8 [core] Remove programCacheDir parameter from ProgramParameters
Binary shader support has been removed in commit c2f974f2a5 ([core]
Remove binary shader support). This left-over parameter is not used
anywhere anymore.
2019-08-27 16:23:48 +03:00
Sudarsana Babu Nagineni
13d2667035 [android] jni binding refactor
Move registerNatives() call to a separate file to make jni.cpp
less dependent on native headers.
2019-08-23 14:39:05 +03:00
Mikhail Pozdnyakov
ef3d04dee5 [core] Export symbol placement update status from MapObserver 2019-08-23 10:56:05 +03:00
zmiao
2a8359b028 [android] bindings for aggregated cluster properties (#15425)
* [android] bindings for aggregated cluster properties

* [android] change the parameter type for adding clusterProperty

* [android] add changelog

* remove extra emplty line
2019-08-22 18:54:31 +03:00
Łukasz Paczos
baa7086570 Merge pull request #15437 from mapbox/lp-revert-14989
Revert "[android] invalidate camera when setting a padding"
2019-08-21 17:24:11 +02:00
Łukasz Paczos
bf34fb0190 [android] check if the CustomGeometrySource's java peer is valid when the thread is shutting down 2019-08-19 10:22:45 +02:00
Alexander Shalamov
dad43ba8fc [android] Android bindings for new 'text-writing-mode' layout property 2019-08-13 13:32:56 +03:00
Thiago Marcos P. Santos
47f498e642 [android] Do not try to wake up the RunLoop if a wake is already pending
Do not flood the RunLoop with wake up calls, potentially causing the
socket buffer to overflow.

Also, write calls are syscalls and will cause a context switch.
2019-08-07 22:41:12 +03:00
Łukasz Paczos
4348169aac [android] allow setting a null access token in the runtime 2019-07-11 11:02:24 +02:00
tobrun
21f7522967 [android] - add binding integration for cache management API 2019-07-02 14:23:24 +02:00
Juha Alanen
0ca8ea6f16 [core] Add number-format expression 2019-06-27 15:51:22 +03:00
Łukasz Paczos
8fbe63b51b [android] invalidate camera when setting a padding 2019-06-25 13:29:20 +02:00
Tobrun
c2fb3cc76f [android] - add resource usage to HttpRequest, add offline query parameter flag to http request (#14837) 2019-06-12 16:40:59 +02:00
tobrun
df062afe6d [android] - fix reset behavior for setLatLngBoundsForCameraTarget 2019-06-11 10:10:51 +02:00
Mikhail Pozdnyakov
434b0f54ea [android] Fix compilation warning with updated clang
`mbgl::android::Value` move assignment operator is implicitly deleted.
2019-06-07 10:46:54 +03:00
Konstantin Käfer
7f9274035b [core] refactor program object creation 2019-05-28 16:11:05 +02:00
Łukasz Paczos
1bef3b7d1d [android] resume file source and wait for result to complete resources cache path change 2019-05-24 15:03:55 +02:00
Łukasz Paczos
b21f9f3e35 [android] return color string values in the [0-255] range 2019-05-22 16:32:04 +02:00
Łukasz Paczos
470b99e795 [android] attach/detach core thread pool's threads to JVM 2019-05-22 15:52:55 +02:00
Łukasz Paczos
7d6255c860 [core] option to perform platform specific operations when creating/destroying core threads 2019-05-22 15:52:55 +02:00
Alexander Shalamov
80dd90bd66 [android] Add bindings for onRemoveUnusedStyleImages API 2019-05-21 06:49:17 -07:00
Thiago Marcos P. Santos
06f1dc48a2 [core] Make the BackgroundScheduler a singleton
- Do not carry it over everywhere as parameter, it is a shared
  instance anyway and the lifecycle is pretty much the app lifecycle
  from the moment we instantiate a map.
- Rename to BackgroundScheduler because it is a Scheduler that will
  do tasks in the background, we don't make assumptions if it is a
  thread pool or a single thread.
- Most importantly, remove the dependency from `core` on `platform`.
2019-05-10 14:20:38 +03:00
Alexander Shalamov
d4149ea5f1 [android] Generate style code for symbol-sort-key 2019-04-17 15:04:08 +03:00
tobrun
d89b13f955 [android] - unify has surface state handling 2019-04-17 11:40:15 +02:00
tobrun
0ac95bd994 [android] - add style image missing binding integration, add synchronous
image overloads to style
2019-04-15 14:24:02 +02:00
Thiago Marcos P. Santos
5a173faec1 [android] Fix build with mismatching glShaderSource signature
Not all GL implementations are following the glShaderSource signature
specified by Khronos for GLES20.

https://www.khronos.org/registry/OpenGL-Refpages/es2.0/xhtml/glShaderSource.xml
2019-04-05 18:58:58 +03:00
Konstantin Käfer
5cc3d7a733 [core] move GLContextMode to RendererBackend 2019-04-05 11:49:17 +02:00
Konstantin Käfer
66c020034e [core] refactor RendererBackend 2019-04-05 11:49:17 +02:00
Konstantin Käfer
a782a6d15b [core] move BackendScope to gfx namespace 2019-04-05 11:49:17 +02:00
Mikhail Pozdnyakov
2b9a52f5e4 [core] Enable 'text-radial-offset' property 2019-03-29 16:18:41 +02:00
Mikhail Pozdnyakov
a6d8742e63 [core] Enable text-variable-anchor property 2019-03-29 16:18:41 +02:00
Sudarsana Babu Nagineni
7af00a404f [core] Include pixelRatio property in MapOptions
Move pixelRatio property from Map constructor to MapOptions.
2019-03-28 16:41:15 +02:00
Sudarsana Babu Nagineni
1cc1d4ea08 [core] Add setter/getter for size property in MapOptions 2019-03-28 16:41:15 +02:00
Bruno de Oliveira Abinader
067ff28d0a [core] ResoureOptions explicit copy via clone() 2019-03-25 13:15:09 +02:00
Bruno de Oliveira Abinader
03db58cdc1 [core] Replace shared_ptr with unique_ptr in {Map,Resource}Options 2019-03-22 18:54:48 +02:00
Bruno de Oliveira Abinader
d5868d3da8 [core] Remove file source from public Map ctor 2019-03-20 21:30:08 +02:00