Commit Graph

7427 Commits

Author SHA1 Message Date
Gali Nelle
9a55c282fe Add LocationIndicatorLayer
New key is "G" in mbgl-glfw, cycling between no puck, centered
in the viewport and positioned in Tokyo.
2020-04-08 14:00:26 +03:00
zmiao
bf4c7340f3 [build] Fix undefined behavour sanitizer (#16375)
* [build] Fix integer overflow runtime error for core part

Temporarily remove circle ci UBSAN build precondition

* [build] Enable all of the ubsans

[build] Check runtime error

[build] Update UBSAN_OPTION

* [build] Add UBSAN blacklist

[build] Ignore system libraries

[build] Ignore vendor library

* [build] Fix implicit conversion runtime error in core

* [build] Fix division by zero runtime error

* [build] Add unfixed error to ubsan blacklist

* [build] Make UBSAN halt on error

Revert "Temporary remove build precondition"

* [build] Fix division by zero error

* [build] Make UBSAN officially work without FIXME prefix

* [build] Fix implicit conversion from int64_t to uint64_t

* [build] Rename style test json file name

* Address review findings
2020-04-07 16:30:30 +03:00
Igor Tarasov
69dc210598 [android] Remove forgotten JNI bindgings from android platform. (#16374)
Cleanup after PR #16356.
2020-04-03 12:56:03 +03:00
Igor Tarasov
338cfd1b33 [android] [build] [ci] Move Android JNI bindings code to mapbox-gl-native-android repo. (#16356) 2020-04-02 18:36:55 +03:00
Alexander Shalamov
ca1ae7604c [android] Add Android bindings 2020-04-01 16:18:55 -04:00
Thiago Marcos P. Santos
9e189e02b4 [darwin] Remove debug leftover
Remove debug leftover added by 9009089a93.
2020-03-31 01:59:41 +03:00
Thiago Marcos P. Santos
1c5e0ee31e [core] Fix misc-* errors
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
94d1c10727 [core] Fix readability-* errors
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
879a906efa [core] Fix bugprone-virtual-near-miss errors
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
ea19e817c0 [core] Fix bugprone-exception-escape errors
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
0f235ac6d5 [core] Fix bugprone-macro-parentheses errors
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
b4e9c0bd11 [core] Fix bugprone-too-small-loop-variable errors
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
31338c5d88 [core] Fix google-readability-casting errors
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
4362e27ab2 [core] Fix google-explicit-constructor errors
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
62b543e44a [core] Fix google-explicit-constructor errors
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
65f4df5190 [core] Fix google-readability-casting errors
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Juha Alanen
488e550895 [build] Enable ccache for iOS CI builds
Now ccache can be optionally enabled. Enable it for CI builds.
By default it is disabled due to issues in some environments.
2020-03-27 17:57:28 +02:00
Bruno de Oliveira Abinader
7cf5350e3c [build] Use cheap-ruler-cpp provided via mapbox-base 2020-03-27 14:46:40 +02:00
Julian Rex
9009089a93 Add NSURLSession delegation to http_file_source.mm (#16321) 2020-03-25 17:56:40 -04:00
Thiago Marcos P. Santos
0998ffbab8 [core] Use const& for the OfflineRegion object
It is used as const and also fixes a build issue on iOS:

```
Non-const lvalue reference to type ‘mbgl::OfflineRegion’ cannot bind
to a temporary of type ‘typename remove_reference<OfflineRegion &>::type’
(aka ‘mbgl::OfflineRegion’)
```
2020-03-25 22:09:07 +02:00
Alexander Shalamov
2b37d81d73 [android] Expose getLayer, getSource and Observer interface for snapshotter
So that users can modify properties of an existing layer / source objects
2020-03-25 07:01:42 -04:00
tobrun
99dbb3eed5 [android] - use RGB values instead of alpha values for local glyph generation 2020-03-24 06:03:03 -04:00
Kevin Li
3f45b0a24b [android] Add jni binding for styleable snapshotter (#16286)
* [android] Add jni binding for styleable snapshotter

* Remove Map parameter from factories

- remove unused map from factory interfaces. Map is only needed for repaint.

* implement addlayer function

* Implement addsource function for snapshotter

* Implement addImages function

* format codes

* Apply baseline

* Update CHANGELOG.md

* Update map_snapshotter.cpp

* Destroy snapshotter on the thread it was created

* Activate file sources in start

* Use custom deleter for snapshotter

* format codes

* Release snapshotter pointer to deleting lambda

* Clang format

* Update CHANGELOG.md

* Fix review comments

* FIx review comments

Co-authored-by: Alexander Shalamov <alexander.shalamov@mapbox.com>
2020-03-24 14:33:54 +08:00
Thiago Marcos P. Santos
d446a1cf63 [core] Fix modernize-use-override errors
As reported by clang-tidy-8.
2020-03-23 20:05:40 +02:00
Thiago Marcos P. Santos
9dbd0a666a [core] Fix modernize-pass-by-value errors
As reported by clang-tidy-8.
2020-03-23 20:05:40 +02:00
Thiago Marcos P. Santos
76b99eb8e8 [core] Fix modernize-deprecated-headers errors
As reported by clang-tidy-8.
2020-03-23 20:05:40 +02:00
Thiago Marcos P. Santos
23a248eacd [core] Fix modernize-use-equals-default errors
As reported by clang-tidy-8.
2020-03-23 20:05:40 +02:00
Thiago Marcos P. Santos
02e91428fd [core] Fix modernize-use-auto errors
As reported by clang-tidy-8.
2020-03-23 20:05:40 +02:00
Thiago Marcos P. Santos
cee3910f17 [core] Fix modernize-return-braced-init-list errors
As reported by clang-tidy-8.
2020-03-23 20:05:40 +02:00
Alexander Shalamov
71efb24e2d Bump mapbox-base to 1.2.0 2020-03-23 11:33:06 -04:00
Thiago Marcos P. Santos
d15b9c1f9c [core] Fix performance-unnecessary-value-param errors
As reported by clang-tidy-8.
2020-03-23 12:09:09 +02:00
Thiago Marcos P. Santos
991cfee7df [core] Fix performance-noexcept-move-constructor errors
As reported by clang-tidy-8.
2020-03-23 12:09:09 +02:00
Kevin Li
3aa80ff407 Update map_snapshotter.cpp (#16308) 2020-03-16 08:03:30 +08:00
Juha Alanen
428f666adb [test][ios] Update iOS render test data setup script 2020-03-12 15:24:37 +02:00
Juha Alanen
cd320d8591 [glfw] Add OpenGL files only when the flag is enabled 2020-03-12 15:24:37 +02:00
Thiago Marcos P. Santos
deb1161366 [ios] Disable ccache 2020-03-09 17:25:37 -07:00
Thiago Marcos P. Santos
bb5c4e81c5 [build] Make curl for Android a vendor package
This will make it easier to add it as dependencies of different targets.
2020-03-09 19:57:10 +02:00
Alexander Shalamov
202b5a8ecc [core] Calculate size of an ambient cache without offline resources 2020-03-07 10:14:18 +02:00
Alexander Shalamov
039bc80411 [android] Update android snapshotter 2020-03-05 17:43:37 +02:00
Alexander Shalamov
d86eb878ce [glfw] Use simplified Snapshotter API 2020-03-05 17:43:37 +02:00
Alexander Shalamov
ca4356fd0f [glfw] Add snapshotter to glfw test app 2020-03-05 17:43:37 +02:00
Alexander Shalamov
deca818614 [core] Simplify MapSnapshotter constructor and add observer interface 2020-03-05 17:43:37 +02:00
Alexander Shalamov
174f40dee3 [core] Add Snapshotter::cancel method 2020-03-05 17:43:37 +02:00
Alexander Shalamov
1577a6b537 [core] Expose Style from Snapshotter 2020-03-05 17:43:37 +02:00
Alexander Shalamov
29eff4028d [core] Remove Actor from public Snapshotter API 2020-03-05 17:43:37 +02:00
Alexander Shalamov
09e69654fa [core] Refactor Snapshotter
Move renderer to a separate thread while keeping map on a client thread.
2020-03-05 17:43:37 +02:00
Thiago Marcos P. Santos
dc510e44c0 [default] Build a no-op number formatter for old ICUs
This has been causing too many build problems and it is
a major source of complains because of different ICU interfaces.
2020-03-05 01:58:34 +02:00
Kevin Li
fb0c7c93a0 [android] Add sort key jni binding for fill_layer and line_layer (#16256) 2020-03-04 19:57:07 +08:00
Kevin Li
efc605bed6 [android] Update toGeoJSON in android_conversion.hpp (#16243)
* [android] Update toGeoJSON in android_conversion.hpp

* Fix review comments

* Update android_conversion.hpp
2020-03-04 14:15:14 +08:00
Mikhail Pozdnyakov
25c8d0ecc8 [default] Fix possible crash at RunLoop::wake() 2020-03-02 10:32:20 +02:00