Bruno de Oliveira Abinader
1798bda981
Fix compilation issues on GCC 9
2020-04-22 21:36:00 +03:00
Mikhail Pozdnyakov
d8639e2f9c
[core] Database file source does not return stored tiles for volatile resources
...
The `DatabaseFileSource.VolatileResource` test is included.
2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
3bebd13d2e
[core] Add Resource::StoragePolicy and consider it in resource loader
2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
64cbc9911d
[core] Introduce Resource::minimumUpdateInterval
...
Introduce `Resource::minimumUpdateInterval` and consider it in the online file source.
The `minimumUpdateInterval` is used to throttle the requests, which were initiated due to resource expiration.
2020-04-20 21:54:31 +03:00
Thiago Marcos P. Santos
ee1d700a9b
[core] Add platform abstractions for utils::now()
...
Some platforms might require special permissions or custom APIs
to access the current time of the day.
2020-04-20 19:03:46 +03:00
Bruno de Oliveira Abinader
f856396131
[core] Fix -Werror={pessimizing,redundant}-move from GCC 9
2020-04-20 14:37:24 +03:00
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
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
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
Kevin Li
be9ca95e9a
[android] Fix onStyleImageMissing callback in Snapshotter not fired issue. ( #16386 )
2020-04-10 18:13:57 +08: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
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
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
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
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
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
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
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
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
Alexander Shalamov
202b5a8ecc
[core] Calculate size of an ambient cache without offline resources
2020-03-07 10:14:18 +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
Mikhail Pozdnyakov
25c8d0ecc8
[default] Fix possible crash at RunLoop::wake()
2020-03-02 10:32:20 +02:00
Mikhail Pozdnyakov
3bf9143079
Emit error message with URL details on load error 404
2020-02-28 12:52:26 +02:00
Mikhail Pozdnyakov
2b1bb1dc4a
[core][offline] Offline download does not hang on 404 error
2020-02-28 12:52:26 +02:00
Mikhail Pozdnyakov
ba4f5efa09
[core] OnlineFileSource is never accessed directly
2020-02-26 22:31:59 +02:00
Mikhail Pozdnyakov
7c48611f9e
[core] Consolidate file source keys in the generic FileSource header
...
Thus we do not need to include specific headers to use `{set|get}Property`
API with key constants.
2020-02-25 23:15:47 +02:00
Mikhail Pozdnyakov
3c05bd984a
[core] Fix offline region download freezing
...
Downloaded resources are put in the buffer and inserted in the database in batches.
Before this change, the buffer was flushed only at the network response callback
and thus it never got flushed if the last required resources were present locally
and did not initiate network requests -> it caused freezing.
Now the buffer is flushed every time the remaining resources container gets empty.
2020-02-25 23:15:47 +02:00
Alexander Shalamov
89eab0530d
[core] Set priorData from cache only if resource is useable
...
In cases when cached resource is useable, yet don't have an expiration
timestamp, we provided data to the requester from the cache and the same
data was returned once 304 response was received from the network.
2020-02-14 11:54:02 +02:00
Thiago Marcos P. Santos
47f2b20435
[build] Remove unused files
...
Buck build is no longer needed, neither is the previous
CMake buildsystem.
2020-02-07 20:12:44 +02:00
Mikhail Pozdnyakov
c04551a4e3
Expose READ_ONLY_MODE_KEY property for DatabaseFileSource
2020-02-07 14:39:03 +02:00
Alexander Shalamov
534003495b
[core] Switch unordered_map to map
...
Change container types where number of elements expected
to be rather small. For instance, number of offline packs
or sql statements.
2020-02-06 23:54:19 +02:00
Alexander Shalamov
bb85ec442d
[core] Add hooks for setting experimental thread priorities for mbgl threads
2020-02-06 23:54:19 +02:00
Alexander Shalamov
4be2fa4f9a
[core] Add platform::setCurrentThreadPriority(double)
2020-02-06 23:54:19 +02:00
Preston A Elder
c28ffe0d4a
Made number format work for newer versions of ICU ( #16176 )
2020-02-04 12:23:57 -05:00
Thomas Moenicke
b64ed75444
[build] Adding a build flag to build without GL if needed ( #16120 )
...
* [build] Adding a build flag to build without GL if needed
* [build] Moving custom layer to mbgl/gl
2020-02-03 19:10:57 +02:00
Alexander Shalamov
9ec2e2aff7
[core] Add pause and resume to database filesource implementation
2020-01-27 14:25:37 +03:00