Konstantin Käfer
7f9274035b
[core] refactor program object creation
2019-05-28 16:11:05 +02:00
Thiago Marcos P. Santos
cc26ef17d5
[core] Introduce usage tag for resources
...
Make the distinction if a resource is being requested for offline
usage or if it will be used immediately.
Fixes #14746
2019-05-28 16:30:49 +03:00
Łukasz Paczos
46ef2d86d2
[core] invoke optional resource path change completion listener
2019-05-24 15:03:55 +02:00
Łukasz Paczos
7d6255c860
[core] option to perform platform specific operations when creating/destroying core threads
2019-05-22 15:52:55 +02:00
Aleksandar Stojiljkovic
3cd8c6c1fd
[core] Refactor HeadlessFrontend/Backend: GL separation and factory ( #14692 )
...
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).
2019-05-21 07:37:49 +03:00
Thiago Marcos P. Santos
1def782cf2
[core] Add API for invalidating tiles
...
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 .
2019-05-21 01:04:01 +03:00
Thiago Marcos P. Santos
06f1dc48a2
[core] Make the BackgroundScheduler a singleton
...
- 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`.
2019-05-10 14:20:38 +03:00
Mikhail Pozdnyakov
b41f39d545
[core] Make ActorRef methods const
...
So that the lambdas calling these methods do not have to be mutable.
2019-05-10 11:59:02 +03:00
Sudarsana Babu Nagineni
2604991b2b
[core] Introduce resetCache API
...
Add an API to delete existing database and re-initialize.
2019-04-29 17:09:58 +03:00
Konstantin Käfer
8f331f5ae3
[core] refactor ThreadLocal backend
2019-04-08 14:41:16 +02:00
Konstantin Käfer
3ceabcd3ec
[core] clang-tidy fixes
2019-04-05 11:49:17 +02:00
Konstantin Käfer
5cc3d7a733
[core] move GLContextMode to RendererBackend
2019-04-05 11:49:17 +02:00
Konstantin Käfer
66c020034e
[core] refactor RendererBackend
2019-04-05 11:49:17 +02:00
Konstantin Käfer
a782a6d15b
[core] move BackendScope to gfx namespace
2019-04-05 11:49:17 +02:00
Konstantin Käfer
be3b5917c1
[core] add generic base class for renderbuffers
2019-04-05 11:49:17 +02:00
Konstantin Käfer
839f4687aa
[core] gl::RenderbufferType -> gfx::RenderbufferPixelType
2019-04-05 11:49:17 +02:00
Ansis Brammanis
2455275bf4
add onStyleImageMissing to allow dynamically loaded or generated images ( #14253 )
...
Also make `Style#updateImage(...)` much faster when the image doesn't change size. This can be useful for asynchronously generating images.
2019-04-02 12:57:45 -04:00
Sudarsana Babu Nagineni
7af00a404f
[core] Include pixelRatio property in MapOptions
...
Move pixelRatio property from Map constructor to MapOptions.
2019-03-28 16:41:15 +02:00
Sudarsana Babu Nagineni
1cc1d4ea08
[core] Add setter/getter for size property in MapOptions
2019-03-28 16:41:15 +02:00
Bruno de Oliveira Abinader
067ff28d0a
[core] ResoureOptions explicit copy via clone()
2019-03-25 13:15:09 +02:00
Bruno de Oliveira Abinader
d5868d3da8
[core] Remove file source from public Map ctor
2019-03-20 21:30:08 +02:00
Łukasz Paczos
3f7b70fdb0
[core] expose an option to change the db file path in runtime
2019-03-13 18:28:04 +01:00
Bruno de Oliveira Abinader
8cc100bfd5
[core] Get FileSource via UpdateParameters in Renderer::Impl
2019-03-13 17:56:44 +02:00
Sudarsana Babu Nagineni
5e2b6bf636
[core] Add MapOptions to define properties of Map
...
To simplify the Map constructor, introduce MapOptions
interface to define the properties that can be set on
a Map.
2019-03-08 18:20:55 +02:00
Bruno de Oliveira Abinader
586b22c0df
[core] Remove map coordinate setters/getters
2019-03-04 14:45:32 +02:00
Thiago Marcos P. Santos
056073a904
[build] Use the correct define on Windows
...
https://blog.kowalczyk.info/article/j/guide-to-predefined-macros-in-c-compilers-gcc-clang-msvc-etc..html
2019-02-19 16:20:56 +02:00
Jason Wray
5a5b8520cc
[core] Remove old sqlite3 usage note
2019-02-14 10:51:49 -08:00
Michael Muesch
24468956fc
Ability to disable any layer using pre-processing flags.
2019-01-17 18:56:58 +02:00
Alexander Shalamov
ab160ac321
[core] Notify requests about network reachability in priority order
2019-01-14 17:34:37 +02:00
Alexander Shalamov
2da9d483ac
[android] Implement google benchmark runner for Android platform
2019-01-11 09:49:36 +02:00
Konstantin Käfer
6f60ccf08e
[build] generate header maps instead of -files.txt
2019-01-09 10:26:53 +01:00
Chris Loer
b7e2b11a75
[core] Support for excluding ideographic glyphs from offline downloads.
2018-12-21 15:13:48 -08:00
Julian Rex
1c7cd243c4
[core,ios,macos] Updates default styles to streets v11, etc. ( #13585 )
2018-12-18 16:00:19 -05:00
Alexander Shalamov
a228f3d80a
[core] Refactor duplicated code in Asset and File sources
2018-12-17 11:37:56 +02:00
Alexander Shalamov
f076a1fe39
[core] Use util::readFile for Local and Asset file sources
...
Use exception free util::readFile instead of util::read_file for
LocalFileSource and AssetFileSource implementations.
2018-12-17 11:37:56 +02:00
Konstantin Käfer
1d8235f5b8
[build] rework platform/default directory and add -files.txt for vendored libs
2018-12-14 11:03:03 +01:00
Mikhail Pozdnyakov
ebd87a5442
[core, android, darwin] Move layer factories to separate files
2018-12-10 18:20:32 +02:00
Mikhail Pozdnyakov
92352de87d
[core] layermanager folder
...
Move `LayerManager` and `LayerFactory` abstract classes to a dedicated folder.
2018-11-30 19:09:17 +02:00
Mikhail Pozdnyakov
ad03e42b28
[core] LayerManager can disable annotations
...
At the moment, the annotations implementation in the `mapbox-gl-native`
core is creating concrete layer instances apart from `LayerManager/LayerFactory`
code path.
So, annotations must be disabled if the `LayerManager` implementation does
not provide line, fill or symbol layers (those, used by the annotations).
Note: in future, annotations implementation will be moved from the core to the
platform SDK level(see https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation )
and `LayerManager` won't need to disable it.
2018-11-28 17:18:38 +02:00
Mikhail Pozdnyakov
361982fef8
[core][Android][Darwin] LayerManager creates RenderLayer instances
...
`LayerManager` is now responsible for `RenderLayer` instances creation,
so that there is a single entry point for creating of objects, which
correspond to a certain layer type.
The `LayerType type` field is dropped from `Layer::Impl`.
2018-11-27 18:10:21 +02:00
Chris Loer
afdc243042
[core] Expose "local ideograph font family" in MapSnapshotter.
2018-11-24 09:57:32 -08:00
Huyen Chau Nguyen
9a606caf0b
[core] define number of concurrent downloads in online file source variable
2018-11-15 12:19:48 -08:00
Mikhail Pozdnyakov
33818233cf
[core][android] Introduce mbgl::style::LayerTypeInfo
...
The `LayerTypeInfo` contains static meta data about certain layer type.
Each layer module should have a single immutable `LayerTypeInfo` instance
for the represented layer type. Both `LayerImpl` and `LayerFactory` from the
module always refer to the same `LayerTypeInfo` instance, so address of this
instance can be used as a layer module Id during the process life time.
2018-11-15 18:32:31 +02:00
Bruno de Oliveira Abinader
db2e1b2e5f
[core] Add RendererState::{pixelForLatLng,latLngForPixel}
2018-11-14 12:22:22 +02:00
Mikhail Pozdnyakov
5a70f2b150
noexcept specifier for layer factory methods
2018-11-07 16:34:20 +02:00
Mikhail Pozdnyakov
ffdeef3a26
Refer corresponding LayerFactory instance from the Layer::Impl
2018-11-07 16:34:20 +02:00
Thiago Marcos P. Santos
7ff85374a7
[build] Remove #pragma diagnostic for boost
...
Boost is now included as a system header and the compiler
should ignore it when issuing warnings.
2018-11-01 16:29:37 +02:00
Bruno de Oliveira Abinader
a7b3f40f44
[build] GCC 7+ complains about -Wimplicit-fallthrough in utf.cpp
2018-10-25 16:23:40 +03:00
Bruno de Oliveira Abinader
55710cbb67
[core] Added RendererState::has{Image,Layer,Source}
2018-10-25 16:23:40 +03:00
Huyen Chau Nguyen
fa78bcadfd
[core] add tests for handling requests with different priorities
...
- ensure that low priority requests are handled last
- add option to set the number of maximum concurrent requests for tests
- some style fixups
2018-10-23 12:47:10 +02:00