summaryrefslogtreecommitdiff
path: root/platform/default
Commit message (Collapse)AuthorAgeFilesLines
* 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).
* [core] Introduce OfflineDatabase::runPackDatabaseAutomatically() APIMikhail Pozdnyakov2019-12-023-12/+18
| | | | | - added a unit test - Updated inline comments in default_file_source.hpp
* [core] Set the priority of online requests for existing resource to lowJuha Alanen2019-11-211-0/+2
|
* [core] Add new method to DefaultFileSourceJuha Alanen2019-11-211-0/+8
| | | | | Add setMaximumConcurrentRequests() method for setting it on the OnlineFileSource.
* [core] Notify requests about network reachability only when coming back onlineJuha Alanen2019-11-211-1/+3
|
* [render-test] Wrap test data inside RenderTestRunner App + Add a new test ↵zmiao2019-11-191-1/+1
| | | | | | | | | | | | app (#15887) * [render-test] Wrap test resources inside app * [render-test] Add test app * fix test app failure * [render-test]add callback + add javaObjectWrapper
* [core] Extend DefaultFileSource APIMikhail Pozdnyakov2019-11-121-6/+15
| | | | Add `packDatabase()` method and `bool pack` argument to the `deleteOfflineRegion()` method.
* [core] OfflineDatabase pack APIMikhail Pozdnyakov2019-11-122-4/+15
| | | | | | - introduce `OfflineDatabase::pack()` standing for incremental vacuum - make pack optional at offline region deletion - update `OfflineDatabase.DeleteRegion` test accordingly to the items above
* remove duplicate formatNumber (#15908)Dane Springmeyer2019-11-121-39/+0
|
* [core] Improve OfflineDatabase error handlingMikhail Pozdnyakov2019-11-112-55/+62
| | | | | - fixes missing exception handlers (e.g. runtim error from the `initialize()` method) - introduces generic exception handling mechanism to reduce the repeated code
* [Linux] Remove CA certificate bundleMikko Pulkki2019-11-111-1/+0
|
* [core] Use expected.hpp from mapbox-baseMikhail Pozdnyakov2019-11-081-1/+0
|
* [render-test] Implement gfx probe for tracking gpu resourcesMikko Pulkki2019-10-302-6/+13
|
* [render-test] Add resource usage tracking to gfx contextMikko Pulkki2019-10-301-0/+1
|
* [core] Enable incremental vacuum for Offline DBMikhail Pozdnyakov2019-10-222-5/+16
| | | | Thus we avoid re-creating the whole database and keeping the backup file as it happens on calling VACUUM.
* [render-test] Implement fps benchmarking tests (#15803)Mikko Pulkki2019-10-227-43/+103
|
* [test-runner] make render-test a shared lib (#15816)zmiao2019-10-151-0/+5
| | | | | | | | | | * [test-runner] make render-test a shared lib [test-runner] nit [test-runner] nit again * [test-runner] Remove redundant linked file in cmake
* [offline] Document the database schemaThiago Marcos P. Santos2019-10-111-30/+134
|
* [build] Make sure offline_schema.hpp is up-to-dateThiago Marcos P. Santos2019-10-112-4/+6
| | | | | - Get the bots to verify that. - Fix the paths.
* [core][android][darwin] Move number format to i18nAlexander Shalamov2019-09-262-1/+42
|
* [core][android][darwin] Move platform specific Collator impls from expressionAlexander Shalamov2019-09-261-35/+20
| | | | Platform specific Collator implementations should not be part of an expression APIs.
* [core][android] Remove unaccent from platform interfacesAlexander Shalamov2019-09-262-46/+40
| | | | | The unaccent is used only within collator, thus, there is no need to have separate platform interface for it.
* [core] Fix performance-move-const-argThiago Marcos P. Santos2019-09-253-11/+16
|
* [build] Move compression to platformThiago Marcos P. Santos2019-09-201-0/+104
| | | | It depends on platform specific compression library.
* [ios, macos] Fix MGLOfflinePack invalidate crash (#15582)Julian Rex2019-09-182-0/+10
|
* [build] Fix clang format and tidy checksThiago Marcos P. Santos2019-09-172-11/+11
|
* [build] Use the system CURL on LinuxThiago Marcos P. Santos2019-09-171-121/+43
| | | | And we don't need to use Mason anymore.
* [build] Make the default styles part of GL NativeThiago Marcos P. Santos2019-09-171-30/+0
| | | | | The reason is applications using it, like GLFW, don't need to depend on code inside platform/default.
* [core] Fix build with old ICU versionsThiago Marcos P. Santos2019-09-061-0/+4
| | | | Use the old API for number formatting.
* [core] Add requiredTileCount to OfflineRegionStatusBruno de Oliveira Abinader2019-08-291-4/+10
|
* [core] const variables for OfflineDownload batch sizesMikhail Pozdnyakov2019-08-291-2/+9
|