Alexander Shalamov
bb85ec442d
[core] Add hooks for setting experimental thread priorities for mbgl threads
2020-02-06 23:54:19 +02:00
Alexander Shalamov
4be2fa4f9a
[core] Add platform::setCurrentThreadPriority(double)
2020-02-06 23:54:19 +02:00
Konstantin Käfer
62b0f4cde2
[core] Add stretches and content to style::Image
2020-01-15 15:02:11 +02:00
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
Ander Conselvan de Oliveira
4c1d03c257
[core] Fix MapSnapshotter build failure on Windows
...
MSVC implementation of std::promise is buggy and only works with types
that can be default-constructed. To avoid a compilation failure in the
instantiation of ask() inside MapSnapshotter::getRegion(), which creates
a std::promise<LanLngBounds>, make LatLngBounds' default constructor
public.
2019-11-13 13:31:01 +02:00
Mikhail Pozdnyakov
55e18a6f81
[core] Use expected.hpp from mapbox-base
2019-11-08 11:27:30 +02:00
Juha Alanen
360b8b4247
[core,android,darwin,qt] Add fields related to feature-state
...
Move the fields from geometry.hpp/feature.hpp as they are not
part of the GeoJSON specification.
2019-10-28 16:46:55 +02:00
Mikko Pulkki
0ca96fd8a4
[render-test] Implement fps benchmarking tests ( #15803 )
2019-10-22 12:13:55 +03:00
Mikhail Pozdnyakov
f62e5b00c9
[core] Introduce Scheduler::makeWeakPtr()
2019-10-09 23:46:11 +03:00
Mikhail Pozdnyakov
bef635765a
[core] Decouple Scheduler interface from actor model
...
So that it is possible to schedule normal `std::function` and use `mapbox::base::WeakPtr`.
2019-10-04 17:42:21 +03:00
Mikhail Pozdnyakov
f3146e43cd
[core] ValueFactory for expression::formatted, other improvements
2019-09-27 13:08:53 +03:00
Mikhail Pozdnyakov
2b834001cc
[core] type aliases and conversion traits for mapbox::base::Value
2019-09-26 11:57:39 +03:00
Alexander Shalamov
e5cdc4ecf3
[core][android][darwin] Move number format to i18n
2019-09-26 10:55:47 +03:00
Thiago Marcos P. Santos
c7bbd5bbef
[core] Fix performance-move-const-arg
2019-09-25 18:59:07 +03:00
Juha Alanen
6b13c42314
[build] Fix clang format and tidy checks
2019-09-18 14:29:15 +03:00
Juha Alanen
413278ca20
[core] Add feature state support to bucket classes
2019-09-18 14:29:15 +03:00
Juha Alanen
e51fafd4eb
[core] Add new types for feature states
2019-09-18 14:29:15 +03:00
Thiago Marcos P. Santos
83a019d021
[build] Fix clang format and tidy checks
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
a849b38390
[build] Mark explicitly visible symbols
...
Easier to maintain than a linker script. We build
everything with visibility hidden by default.
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
d424850257
[build] Make the default styles part of GL Native
...
The reason is applications using it, like GLFW, don't need
to depend on code inside platform/default.
2019-09-17 12:28:55 +03:00
Mikhail Pozdnyakov
796cc3a4d6
[core] Bitmask operations for enums
2019-09-13 13:45:48 +03:00
Mikhail Pozdnyakov
151ea331f8
[core] Use mapbox::base::TypeWrapper instead of utils::peer
2019-09-10 11:51:17 +03:00
Alexander Shalamov
148d65bced
[core][node] Serialize formatted expression's text-color option
...
This enables proper round-tripping for serialized format expression.
2019-08-15 18:25:10 +03:00
Aleksandar Stojiljkovic
73d9f26d03
[core] Limit pitch based on edge insets. Fix max Z calculation in getProjMatrix.
...
Patch partly fixes #15163 in a way that it doesn't allow loading tens of thousands of tiles and attempt to show area above horizon:
Limit pitch based on edge insets. It is not too bad - current limit of 60 degrees stays active until center of perspective is moved towards the bottom, to 84% of screen height. The plan is to split removal of 60 degrees limit to follow up patch.
Fix max Z calculation in getProjMatrix. TransformState::getProjMatrix calculation of farZ was complex with possibility to lead to negative z values. Replacing it with simpler, precise calculation:
furthestDistance = cameraToCenterDistance / (1 - tanFovAboveCenter * std::tan(getPitch()));
TransformState::getProjMatrix calculation of farZ was an aproximation. Replacing it with simpler, but precise calculation.
Related to: #15163
2019-08-01 09:28:36 +03:00
Juha Alanen
0ca8ea6f16
[core] Add number-format expression
2019-06-27 15:51:22 +03:00
Konstantin Käfer
844299f1c3
[build] remove roundtrip through <experimental/optional> when using optional
2019-06-12 12:04:07 +02:00
Konstantin Käfer
e52ce34fb5
[core] remove platform::show(Color)?DebugImage
2019-05-28 16:11:05 +02:00
Łukasz Paczos
5e00a2a764
[core] limit thread's scope to release the Object before detaching the thread
2019-05-24 13:52:50 +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
Mikhail Pozdnyakov
e79080771b
[core] RenderLayer::render(PaintParameters, RenderSource*) -> render(PaintParameters)
2019-05-22 16:41:10 +03:00
Alexander Shalamov
0344ce36c4
[core] Define max cache size for ImageManager
2019-05-21 06:49:17 -07:00
Konstantin Käfer
da5bd4d6e3
[core] use unique IDs for DrawScopes
2019-05-15 11:57:43 -07:00
Mikhail Pozdnyakov
b39c71eea8
[core] Introduce variable text placement for point labels - Layout part
2019-03-29 16:18:41 +02:00
Ander Conselvan de Oliveira
11de777628
[core] Remove optional from Map::setLatLngBounds()
...
This is a first step into grouping together bounds related Map methods
into one that takes a "BoundOptions" object. LatLngBounds::unbounded()
replaces an undefined optional<LatLngBounds>.
v2: Document LatLngBounds::unbounded()
2019-03-14 18:33:11 +02:00
Ander Conselvan de Oliveira
a73cc9d8e3
[core] Remove support for setting minimum and maximum pitch
...
Support for limiting pitch was introduced in commit c4fc89977b ([core]
Added {set,get}{Min,Max}Pitch) in 2017 but was never exposed by the
platform SDKs. Simplify the Map interface by removing this unused
feature.
v2: Add util::PITCH_MIN
2019-03-14 18:33:11 +02:00
Mikhail Pozdnyakov
ceec74f52f
[core] peer must not wrap itself
2019-02-28 17:45:21 +02:00
Mikhail Pozdnyakov
810999fadf
[core] Simplify util::peer
...
Remove custom vtable, base implementation on `std::unique_ptr`.
2019-02-28 17:45:21 +02:00
Bruno de Oliveira Abinader
e5ed9d9ddf
[core] Use unwrapped longitude for bounds check
2019-02-26 21:17:31 +02:00
Mikhail Pozdnyakov
577e6ee98a
[core] Simplify mbgl::Immutable
2019-01-15 22:29:08 +02:00
Alexander Shalamov
a1ca06e304
[core] Introduce Renderer::queryFeatureExtension API
...
New interface allows it's users to query additional information about
feature that was provided by qRF interface. This is particularly
useful for clustered features.
2018-12-12 15:08:18 +02:00
Bruno de Oliveira Abinader
bf8b24fa8d
[build] Update to geometry v1.0.0
2018-11-13 17:28:26 +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
Mikhail Pozdnyakov
7a9461a8d4
Consolidate style::Layer properties API
...
The `style::Layer` class now exposes all the properties contained at `style::LayerImpl`.
This allowed to drop `style::Layer::accept()` method usage, avoid the repeated generated code
and thus save some binary size.
This patch is a part of the layers modularization effort.
2018-10-25 22:42:43 +03:00
Ryan Hamley
3ec0231bb7
[core] Avoid wrapping longitude values of exactly 180 and 360 ( #12797 ) ( #13006 )
2018-10-24 18:38:54 -07:00
Konstantin Käfer
7692be5d15
[core] refactor util::toString to use RapidJSON's stringification
2018-10-23 12:23:40 +02:00
Konstantin Käfer
2766e64973
[core] only include <sstream> when we need it
2018-10-23 12:23:40 +02:00
Konstantin Käfer
eb828dfd29
[core] add the ability to stringy numbers as hex
2018-10-23 12:23:40 +02:00
Konstantin Käfer
43687b4781
[core] add ability to stringify doubles that are integer with and without trailing ".0"
2018-10-23 12:23:40 +02:00
Chris Loer
ce76bde13d
[core] Initial implementation of 'format' expression
2018-10-15 13:15:46 -07:00
Molly Lloyd
2cdbe934c2
[windows, qt] fix windows compiler errors, remove tao + tuple polyfill
2018-08-31 13:08:47 -07:00