summaryrefslogtreecommitdiff
path: root/platform/default
Commit message (Collapse)AuthorAgeFilesLines
* [core] Fix performance-unnecessary-value-param errors in header filesThiago Marcos P. Santos2020-04-171-3/+3
| | | | As reported by clang-tidy-8.
* [core] Fix google-default-arguments errors in header filesThiago Marcos P. Santos2020-04-171-1/+1
| | | | As reported by clang-tidy-8.
* [core] Fix readability-redundant-member-init errors in header filesThiago Marcos P. Santos2020-04-171-1/+1
| | | | As reported by clang-tidy-8.
* [core] Fix readability-avoid-const-params-in-decls errors in header filesThiago Marcos P. Santos2020-04-171-2/+1
| | | | As reported by clang-tidy-8.
* [android] Fix onStyleImageMissing callback in Snapshotter not fired issue. ↵Kevin Li2020-04-101-0/+4
| | | | (#16386)
* Add LocationIndicatorLayerGali Nelle2020-04-081-0/+7
| | | | | New key is "G" in mbgl-glfw, cycling between no puck, centered in the viewport and positioned in Tokyo.
* [build] Fix undefined behavour sanitizer (#16375)zmiao2020-04-073-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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
* [core] Fix misc-* errorsThiago Marcos P. Santos2020-03-301-1/+1
| | | | As reported by clang-tidy-8.
* [core] Fix readability-* errorsThiago Marcos P. Santos2020-03-306-14/+13
| | | | As reported by clang-tidy-8.
* [core] Fix bugprone-exception-escape errorsThiago Marcos P. Santos2020-03-301-1/+4
| | | | As reported by clang-tidy-8.
* [core] Fix bugprone-macro-parentheses errorsThiago Marcos P. Santos2020-03-301-2/+1
| | | | As reported by clang-tidy-8.
* [core] Fix google-readability-casting errorsThiago Marcos P. Santos2020-03-301-2/+2
| | | | As reported by clang-tidy-8.
* [core] Fix google-explicit-constructor errorsThiago Marcos P. Santos2020-03-304-10/+4
| | | | As reported by clang-tidy-8.
* [core] Fix google-readability-casting errorsThiago Marcos P. Santos2020-03-303-5/+5
| | | | As reported by clang-tidy-8.
* [core] Use const& for the OfflineRegion objectThiago Marcos P. Santos2020-03-251-5/+7
| | | | | | | | | | 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’) ```
* [core] Fix modernize-use-override errorsThiago Marcos P. Santos2020-03-231-1/+1
| | | | As reported by clang-tidy-8.
* [core] Fix modernize-deprecated-headers errorsThiago Marcos P. Santos2020-03-231-3/+4
| | | | As reported by clang-tidy-8.
* [core] Fix modernize-use-equals-default errorsThiago Marcos P. Santos2020-03-232-2/+2
| | | | As reported by clang-tidy-8.
* [core] Fix modernize-use-auto errorsThiago Marcos P. Santos2020-03-231-1/+1
| | | | As reported by clang-tidy-8.
* [core] Fix modernize-return-braced-init-list errorsThiago Marcos P. Santos2020-03-231-2/+2
| | | | As reported by clang-tidy-8.
* [core] Fix performance-unnecessary-value-param errorsThiago Marcos P. Santos2020-03-2314-94/+95
| | | | As reported by clang-tidy-8.
* [core] Fix performance-noexcept-move-constructor errorsThiago Marcos P. Santos2020-03-232-5/+4
| | | | As reported by clang-tidy-8.
* [core] Calculate size of an ambient cache without offline resourcesAlexander Shalamov2020-03-072-25/+147
|
* [core] Simplify MapSnapshotter constructor and add observer interfaceAlexander Shalamov2020-03-052-44/+50
|
* [core] Add Snapshotter::cancel methodAlexander Shalamov2020-03-052-4/+10
|
* [core] Expose Style from SnapshotterAlexander Shalamov2020-03-052-0/+12
|
* [core] Remove Actor from public Snapshotter APIAlexander Shalamov2020-03-052-11/+39
|
* [core] Refactor SnapshotterAlexander Shalamov2020-03-052-150/+200
| | | | Move renderer to a separate thread while keeping map on a client thread.
* [default] Build a no-op number formatter for old ICUsThiago Marcos P. Santos2020-03-051-12/+11
| | | | | This has been causing too many build problems and it is a major source of complains because of different ICU interfaces.
* [default] Fix possible crash at RunLoop::wake()Mikhail Pozdnyakov2020-03-021-1/+1
|
* Emit error message with URL details on load error 404Mikhail Pozdnyakov2020-02-281-0/+12
|
* [core][offline] Offline download does not hang on 404 errorMikhail Pozdnyakov2020-02-281-0/+7
|
* [core] OnlineFileSource is never accessed directlyMikhail Pozdnyakov2020-02-261-1/+1
|
* [core] Consolidate file source keys in the generic FileSource headerMikhail Pozdnyakov2020-02-251-1/+1
| | | | | Thus we do not need to include specific headers to use `{set|get}Property` API with key constants.
* [core] Fix offline region download freezingMikhail Pozdnyakov2020-02-252-16/+26
| | | | | | | | | | 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.
* [core] Set priorData from cache only if resource is useableAlexander Shalamov2020-02-141-1/+5
| | | | | | 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.
* [build] Remove unused filesThiago Marcos P. Santos2020-02-071-35/+0
| | | | | Buck build is no longer needed, neither is the previous CMake buildsystem.
* Expose READ_ONLY_MODE_KEY property for DatabaseFileSourceMikhail Pozdnyakov2020-02-073-35/+35
|
* [core] Switch unordered_map to mapAlexander Shalamov2020-02-065-10/+11
| | | | | | Change container types where number of elements expected to be rather small. For instance, number of offline packs or sql statements.
* [core] Add hooks for setting experimental thread priorities for mbgl threadsAlexander Shalamov2020-02-065-10/+26
|
* [core] Add platform::setCurrentThreadPriority(double)Alexander Shalamov2020-02-061-3/+16
|
* Made number format work for newer versions of ICU (#16176)Preston A Elder2020-02-041-0/+8
|
* [build] Adding a build flag to build without GL if needed (#16120)Thomas Moenicke2020-02-031-1/+5
| | | | | | * [build] Adding a build flag to build without GL if needed * [build] Moving custom layer to mbgl/gl
* [core] Add pause and resume to database filesource implementationAlexander Shalamov2020-01-271-0/+11
|
* [core] Move resource loader to dedicated thread with schedulerAlexander Shalamov2020-01-231-75/+48
|
* [core] Pass std::shared_ptr<UpdateParameters> to the render orchestratorMikhail Pozdnyakov2020-01-221-1/+1
| | | | So that it can retain ownership of the given parameters.
* [core] Modularize FileSource codebase (#15768)Alexander Shalamov2020-01-1311-556/+848
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [core] Introduce FileSourceManager and use it for default platform impl - Add `FileSourceManager` interface that provides access to `FileSource` instances and means of registering / unregistering `FileSource` factories - Split `DefaultFileSource` into smaller parts - Add `DatabaseFileSource` interface and it's default implementation - Remove inter-dependencies between concrete `FileSource` classes * [build] Add files to next build system * [core] Add generic property setters / getters * [core] Remove setOnlineStatus from OnlineFileSource interface * [core] Hide threading implementation details from DatabaseFileSource interface * [core] Make DB file source methods virtual * [core] Add documentation for DatabaseFileSource and rename one method * [core] Use simple callback instead of ActorRef * [core] Remove ActorRef from OnlineFileSource public header * [core] Add callback to FileSource::forward async API * [core] Pass OfflineRegionDefinition by value * [core] Update tests to use modular file sources * [core] Update unit tests * [core] Update unit tests after rebase * [core] Backport low prio fix for cached requests * [core] Backport pack database * [core] Return removed factory from unRegisterFileSourceFactory * [core] Rename shadowed args in onlinefilesource * [core] Remove simple std::function callback aliases * [core] Expose online file source property keys in public header file * [test-runner] Add proxy file source test runner * [cache] Update mbgl-cache utility to use new file source * [metrics] Rebaseline binary size metrics * [offline] Update offline utility * [core] Update changelog
* [core] Make it possible to reopen the database read-only for testingThiago Marcos P. Santos2020-01-083-38/+113
| | | | | | Needed for Android, because the database is in readonly filesystem and also because it is annoying to see files modified every time we run the tests.
* [util] fix thread.cpp portabilitySamuel Thibault2020-01-081-0/+6
|
* [core] Offline download must clear batch buffer at load interruptMikhail Pozdnyakov2019-12-181-0/+1
| | | | | | | Otherwise, the stale buffer data are processed again at the repeated load. It is causing various problems like missing load completion notification or crashes (if the previously used observer instance has been deleted).