Commit Graph

7438 Commits

Author SHA1 Message Date
Thiago Marcos P. Santos
b49517b737 [core] Fix performance-unnecessary-value-param errors in header files
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
542c11ae63 [core] Fix modernize-use-equals-default errors in header files
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
7751e4be76 [core] Fix google-default-arguments errors in header files
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
46fa691596 [core] Fix performance-unnecessary-value-param errors in header files
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
c4cb026fa4 [core] Fix readability-redundant-member-init errors in header files
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
dffe00feea [core] Fix readability-avoid-const-params-in-decls errors in header files
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Juha Alanen
36175d57b4 [build] Disable benchmark for MacOS debug CI builds 2020-04-15 19:11:28 +03:00
Juha Alanen
39329516dd [android, ios] Increase benchmark repetition count
More repetitions give more stable results.
2020-04-15 19:11:28 +03:00
Kevin Li
be9ca95e9a [android] Fix onStyleImageMissing callback in Snapshotter not fired issue. (#16386) 2020-04-10 18:13:57 +08:00
Gali Nelle
209857f8ac Fix LocationIndicator Layer
This changes image size properties to be scales instead of pixel sizes.
The commit also adds fixes for handling image updates with the same ID,
adds tests for expressions in paint properties, as well as tests for using images
with pixel ratio greater than 1.
Finally it moves image-tilt-displacement and perspective-compensation properties
from layout to paint properties, and includes other minor cleanups.
2020-04-10 00:15:43 +03:00
Gali Nelle
8e581c88ea Make location indicator bearing a paint property
This change introduces a new property type, Rotation, that uses
a custom interpolator, and that is currently applied to
all style properties named "bearing", with a period attribute.
2020-04-08 14:00:26 +03:00
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