Alexander Shalamov
879c44f661
[core] Modularize FileSource codebase ( #15768 )
...
* [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
2020-01-13 10:57:23 +02:00
Alexander Shalamov
89665326c2
[core] Add unit test for calculateTileDistances
2019-12-09 17:26:13 +02:00
Alexander Shalamov
d36958997b
[core] Add unit test for getAnchors and remove unused field
2019-12-09 17:26:13 +02:00
Alexander Shalamov
72e9388a61
[core] Add unit tests for Formatted class
2019-12-02 17:11:49 +02:00
Sergey Yershov
37b332899b
[core] Fix incorrect resizing of TileCache
2019-11-19 15:03:28 +02:00
Thiago Marcos P. Santos
79670593de
[build] Make test/util.hpp a public interface
...
We will build the tests as a library and platforms will
provide the test runner.
2019-09-17 12:28:55 +03:00
Mikhail Pozdnyakov
151ea331f8
[core] Use mapbox::base::TypeWrapper instead of utils::peer
2019-09-10 11:51:17 +03:00
Konstantin Käfer
c7be3d52a7
Always call onSourceLoaded observers ( #15548 )
...
* [core] add sources to source collection before triggering load
* [test] add testcase for #15514
* [core] also call onSourceLoaded observers when no network request was necessary
2019-09-03 17:02:23 -07:00
Mikhail Pozdnyakov
a9abc43510
[core] Introduce PatternAtlas
2019-06-04 15:28:00 +03:00
Alexander Shalamov
749044f1b0
[core] Add unit test for zero width space line breaking
2019-05-24 05:59:07 -07:00
Thiago Marcos P. Santos
c2f974f2a5
[core] Remove binary shader support
...
The implementation is buggy and not worth maintaining anymore
because performance benefits are not substantial or sometimes
worse. Also, removing it saves about 150 ~ 180 KB in binary size.
Below timings are averages of minimum 5 runs.
```
Device Init launch Average relaunch
s10 1129.8 ms 700 ms
s10 - binary 1346.75 ms 694 ms
Pixel 1692 ms 723 ms
Pixel - binary 1883 ms 1039 ms
Kazam 17948 ms 1339 ms
Kazam - binary 19157 ms 1564 ms
Wiko 2060 ms 1278 ms
Wiko - binary 3876 ms 1136 ms
```
Fixes #14294
2019-05-21 15:05:37 +03:00
Konstantin Käfer
08163713e2
[core] change approach to stencil clipping to (almost) match JS
2019-04-29 11:37:39 +02:00
Mikhail Pozdnyakov
4b21560cf5
[core] Use style::LayerProperties in render layers, buckets and layouts.
2019-04-17 17:21:41 +03:00
Alexander Shalamov
300c91b46a
[core] Move should not call destructors
2019-04-05 22:35:04 +03:00
Bruno de Oliveira Abinader
d5868d3da8
[core] Remove file source from public Map ctor
2019-03-20 21:30:08 +02:00
Thiago Marcos P. Santos
992a955fc3
[tests] Add unit tests for the GLFunctions
2019-02-12 19:42:08 +02:00
Konstantin Käfer
6f60ccf08e
[build] generate header maps instead of -files.txt
2019-01-09 10:26:53 +01:00