Commit Graph

7378 Commits

Author SHA1 Message Date
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
Kevin Li
e0c2b3e771 [android] Add jni binding for min and max pitch (#16236)
* [android] Add jni binding for min and max pitch

* Update CHANGELOG.md
2020-02-28 17:26:15 +08:00
Minh Nguyễn
668a453022 [ios] Restored support for iOS 9–11 by default 2020-02-28 10:07:34 +02:00
Minh Nguyễn
8212f94f07 [ios, macos] Redirect documentation to mapbox-gl-native-ios 2020-02-27 17:14:20 -08:00
Minh Nguyễn
206b9bde5e [ios, macos] Deleted iOS/macOS map SDK sources, resources, scripts 2020-02-27 17:14:20 -08:00
Minh Nguyễn
bd252e16a3 [ios, macos] Cleaned up iOS, macOS CMake configuration 2020-02-27 17:14:20 -08:00
Thiago Marcos P. Santos
427d785848 [build] Make csscolorparser and parsedate vendors
They have a different license from the rest of the code
and this will make it explicit. Also the script for generating
the license will dectect them correctly.
2020-02-27 18:19:31 +02:00
Juha Alanen
1ac1d9363c [build][ios] Move iOS test runners to a separate cmake file 2020-02-27 10:09:35 +02:00
Juha Alanen
b756ff8e14 [build][ios] Move iOS specific ccache scripts to platform directory 2020-02-27 10:09:35 +02:00
Juha Alanen
18e9ed1c0b [build] Build files related to OpenGL renderer only when the flag is enabled 2020-02-27 10:09:35 +02:00
Mikhail Pozdnyakov
ba4f5efa09 [core] OnlineFileSource is never accessed directly 2020-02-26 22:31:59 +02:00
Mikhail Pozdnyakov
aad13f6a3f [core] FileSourceManager::getFileSource() returns PassRefPtr 2020-02-26 22:31:59 +02:00
Juha Alanen
9aefd2f2fa [glfw] Add option to test pitch bounds 2020-02-26 11:21:04 +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
Kevin Li
43c1aac7e8 [android] add jni binding for source zoom delta (#16221)
* [android] and jni interface for source zoom delta

* handle nullopt in setter and getter

* Use jni::Integer
2020-02-24 18:47:16 +08:00
Thiago Marcos P. Santos
44f9a694c5 [qt] Fix compilation error
GCC complains about this variable being potentially not initialized.
2020-02-20 19:41:03 +03:00
Jordan Kiley
e27055ff21 Revert "[ios, macos] Include SKU token for offline requests (#16130)" (#16193)
* Revert "[ios, macos] Include SKU token for offline requests (#16130) (#16133)"

This reverts commit d85ce77deba12167f1c25a911ef81f44e35daa2a.

* [ios] Keep skipping docs for ios-release
2020-02-19 15:10:50 -08:00
Juha Alanen
cea87c9f2d [benchmark] Add iOS benchmark runner 2020-02-18 16:10:23 +02:00
Juha Alanen
a5ec862a2a [test-runner] Share common code between test runners
Also remove some unnecessary files.
2020-02-18 16:10:23 +02:00
Alexander Shalamov
96655276f8 [android] Don't construct weak sheduler in renderer's custructor
Android renderer creates mailbox that is owned by the scheduler that
is required by the mailbox itself. Construction should be split, so
that scheduler is fully constructed and it's weakPtr can be created.
2020-02-17 11:25:43 +02:00
Juha Alanen
bf8bde5029 [build] Bump minimum iOS version to 12.0 2020-02-14 12:01:52 +02:00
Juha Alanen
6d815401b1 [test-runner] Share common code between iOS test runners 2020-02-14 12:01:52 +02:00
Juha Alanen
632c5f9d4c [test] Add iOS unit test runner 2020-02-14 12:01:52 +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
Mikhail Pozdnyakov
3bd2d0e4d7 style::Style::getImage() returns optional<style::Image> 2020-02-11 14:34:46 +02:00
Mikhail Pozdnyakov
64e2bcdf43 [core] Loading images to style optimization
This change enables attaching images to the style with batches and
avoids massive re-allocations. Thus, it improves UI performance
especially at start-up time.
2020-02-11 14:34:46 +02:00
zmiao
7424c4eecb Bump GL-JS
Backport GL-JS fix 'Hide glyphs behind the camera'(https://github.com/mapbox/mapbox-gl-js/pull/9229)
2020-02-11 11:05:18 +02:00
Thiago Marcos P. Santos
021e48f35e [build] Run cmake-format on all the CMake files
Unify and enforce a CMake coding style.
2020-02-07 20:12:44 +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
Thiago Marcos P. Santos
f7fef70e9d [build] Move the next buildsystem to the root
This will make the `next` buildsystem no longer the `next`, but the
`actual`. The idea is to simplify the build, removing scripts, to
make the platform buildsystem generated by CMake more compatible
with IDEs and make development more streamlined. It will also make
cross compilation easier.
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
Juha Alanen
d4d96fd88c [test] Enable HTTP server on Android 2020-02-06 17:52:12 +02:00
Juha Alanen
ce5b7ad113 [android] Implement watch handler in RunLoop 2020-02-06 17:52:12 +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
Juha Alanen
ce59c56f9f [build] Disable TSAN checks for the test HTTP server in CI builds 2020-01-30 13:52:09 +02:00
Thiago Marcos P. Santos
0de6ffc383 [build] Cleanup CircleCI configuration
- Remove the legacy build jobs
- Remove the next- namespace.
2020-01-28 00:44:07 +02:00
Alexander Shalamov
9ec2e2aff7 [core] Add pause and resume to database filesource implementation 2020-01-27 14:25:37 +03:00
Alexander Shalamov
7bf4de9f39 [core] Move resource loader to dedicated thread with scheduler 2020-01-23 12:55:57 +03:00
Mikhail Pozdnyakov
d24c1d625a [core] Pass std::shared_ptr<UpdateParameters> to the render orchestrator
So that it can retain ownership of the given parameters.
2020-01-22 14:30:26 +02:00
Jordan Kiley
942d9566d3 [ios, macos] Include SKU token for offline requests (#16130) 2020-01-21 13:35:57 -08:00
Konstantin Käfer
62b0f4cde2 [core] Add stretches and content to style::Image 2020-01-15 15:02:11 +02:00
Alexander Shalamov
6ddff19cee [android] Use new FileSourceManager interface
Use new interface for android jni adaptation classes.
2020-01-13 10:57:23 +02:00
Alexander Shalamov
1e6ad76516 [qt] Use new FileSourceManager interface 2020-01-13 10:57:23 +02:00