summaryrefslogtreecommitdiff
path: root/platform/default/include
Commit message (Collapse)AuthorAgeFilesLines
* [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.
* [core] Fix readability-* errorsThiago Marcos P. Santos2020-03-301-2/+2
| | | | As reported by clang-tidy-8.
* [core] Fix performance-unnecessary-value-param errorsThiago Marcos P. Santos2020-03-232-3/+3
| | | | As reported by clang-tidy-8.
* [core] Fix performance-noexcept-move-constructor errorsThiago Marcos P. Santos2020-03-231-2/+2
| | | | As reported by clang-tidy-8.
* [core] Calculate size of an ambient cache without offline resourcesAlexander Shalamov2020-03-071-3/+34
|
* [core] Simplify MapSnapshotter constructor and add observer interfaceAlexander Shalamov2020-03-051-6/+16
|
* [core] Add Snapshotter::cancel methodAlexander Shalamov2020-03-051-0/+1
|
* [core] Expose Style from SnapshotterAlexander Shalamov2020-03-051-0/+3
|
* [core] Remove Actor from public Snapshotter APIAlexander Shalamov2020-03-051-5/+1
|
* [core] Refactor SnapshotterAlexander Shalamov2020-03-051-8/+7
| | | | Move renderer to a separate thread while keeping map on a client thread.
* [core] Fix offline region download freezingMikhail Pozdnyakov2020-02-251-0/+1
| | | | | | | | | | 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.
* Expose READ_ONLY_MODE_KEY property for DatabaseFileSourceMikhail Pozdnyakov2020-02-071-2/+2
|
* [core] Switch unordered_map to mapAlexander Shalamov2020-02-062-4/+4
| | | | | | Change container types where number of elements expected to be rather small. For instance, number of offline packs or sql statements.
* [core] Modularize FileSource codebase (#15768)Alexander Shalamov2020-01-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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-081-2/+4
| | | | | | 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.
* [core] Introduce OfflineDatabase::runPackDatabaseAutomatically() APIMikhail Pozdnyakov2019-12-021-1/+3
| | | | | - added a unit test - Updated inline comments in default_file_source.hpp
* [core] OfflineDatabase pack APIMikhail Pozdnyakov2019-11-121-1/+2
| | | | | | - introduce `OfflineDatabase::pack()` standing for incremental vacuum - make pack optional at offline region deletion - update `OfflineDatabase.DeleteRegion` test accordingly to the items above
* [core] Improve OfflineDatabase error handlingMikhail Pozdnyakov2019-11-111-0/+1
| | | | | - fixes missing exception handlers (e.g. runtim error from the `initialize()` method) - introduces generic exception handling mechanism to reduce the repeated code
* [render-test] Implement gfx probe for tracking gpu resourcesMikko Pulkki2019-10-301-1/+7
|
* [core] Enable incremental vacuum for Offline DBMikhail Pozdnyakov2019-10-221-0/+1
| | | | 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-223-6/+19
|
* [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.
* [ios, macos] Fix MGLOfflinePack invalidate crash (#15582)Julian Rex2019-09-181-0/+1
|
* [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] Mark offline region resources in batchesMikhail Pozdnyakov2019-08-292-2/+4
|
* [core] Add OfflineDatabase::markUsedResources()Mikhail Pozdnyakov2019-08-291-0/+1
|
* [core] Move semantics for OfflineDownload::ensureResource()Mikhail Pozdnyakov2019-08-291-1/+1
|
* [core] Remove programCacheDir parameter from ProgramParametersAnder Conselvan de Oliveira2019-08-272-3/+0
| | | | | | Binary shader support has been removed in commit c2f974f2a573 ([core] Remove binary shader support). This left-over parameter is not used anywhere anymore.
* [core] Add method for setting a maximum size for the ambient cacheThiago Marcos P. Santos2019-06-181-3/+5
| | | | | | | - Removed this parameter from the constructor, now that we have a method to set it. - Add the method and enforce the limits if the ambient cache exceeds the size.
* [core] Clear/Invalidate should also work on non-tile resourcesThiago Marcos P. Santos2019-06-181-2/+2
| | | | | These methods were only affecting tiles, but they should really work on every resource like style, glyphs, etc.
* [core] Rename resetCache to resetDatabaseThiago Marcos P. Santos2019-06-181-1/+1
| | | | | Avoid confusion about what is being reset. In this case, the whole database and not only the ambient cache.
* [core] Add API for clearing tile cacheThiago Marcos P. Santos2019-06-131-0/+5
|
* [core] refactor program object creationKonstantin Käfer2019-05-281-2/+7
|
* [core] Introduce usage tag for resourcesThiago Marcos P. Santos2019-05-281-1/+1
| | | | | | | Make the distinction if a resource is being requested for offline usage or if it will be used immediately. Fixes #14746
* [core] Refactor HeadlessFrontend/Backend: GL separation and factory (#14692)Aleksandar Stojiljkovic2019-05-213-18/+36
| | | | | Refactor out HeadlessFrontend and HeadlessBackend gl independent code to gfx. Define gl::HeadlessBackend as subclass, instantiated by gfx::HeadlessBackend static factory method. GL dependent tests are still using gl::HeadlessBackend directly (not through gfx).
* [core] Add API for invalidating tilesThiago Marcos P. Santos2019-05-211-0/+8
| | | | | | | | | Add new APIs for invalidating tiles, effectively forcing Mapbox GL Native to check with the servers if the tiles are valid before using them. This is more efficient then deleting tiles, because in case of valid tiles, they won't get downloaded. Fixes #4376.
* [core] Make the BackgroundScheduler a singletonThiago Marcos P. Santos2019-05-104-41/+1
| | | | | | | | | | - Do not carry it over everywhere as parameter, it is a shared instance anyway and the lifecycle is pretty much the app lifecycle from the moment we instantiate a map. - Rename to BackgroundScheduler because it is a Scheduler that will do tasks in the background, we don't make assumptions if it is a thread pool or a single thread. - Most importantly, remove the dependency from `core` on `platform`.
* [core] Introduce resetCache APISudarsana Babu Nagineni2019-04-291-2/+2
| | | | Add an API to delete existing database and re-initialize.
* [core] move GLContextMode to RendererBackendKonstantin Käfer2019-04-052-4/+12
|
* [core] refactor RendererBackendKonstantin Käfer2019-04-052-11/+14
|
* [core] Remove file source from public Map ctorBruno de Oliveira Abinader2019-03-201-4/+5
|
* [core] expose an option to change the db file path in runtimeŁukasz Paczos2019-03-131-1/+5
|
* [core] Get FileSource via UpdateParameters in Renderer::ImplBruno de Oliveira Abinader2019-03-131-3/+2
|
* [core,ios,macos] Updates default styles to streets v11, etc. (#13585)Julian Rex2018-12-181-5/+5
|
* [core] Refactor duplicated code in Asset and File sourcesAlexander Shalamov2018-12-171-0/+13
|
* [build] rework platform/default directory and add -files.txt for vendored libsKonstantin Käfer2018-12-1418-0/+956