Konstantin Käfer
e52ce34fb5
[core] remove platform::show(Color)?DebugImage
2019-05-28 16:11:05 +02:00
Konstantin Käfer
7f9274035b
[core] refactor program object creation
2019-05-28 16:11:05 +02:00
Thiago Marcos P. Santos
33ee7e23de
[core] Remove priority from the constructor
...
Make the constructor less verbose and set good defaults.
2019-05-28 16:30:49 +03: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
Aleksandar Stojiljkovic
9809c9f8f5
[core] Offset viewport center when edge insets are specified
...
The change is implemented in TransformState::getProjMatrix, the rest of the code is making sure that existing API contracts stay and there are tests verifyingrendering and render query processing only items within screen and given tolerance around screen edges.
MapView: don't bake edge insets into relalculated camera center. Keep edge insets as property of camera in TransformState (similar to pitch, zoom, bearing) independent from specified camera center. Interpolate edge insets in animation.
iOS Demo app: "Turn On/Off Content Insets" pitch the camera and navigate to convenient location in Denver, where streets are parallel to cardinal directions, to illustrate viewport center offset when edge insets are set.
Tests:
ViewFrustumCulling: although Annotations are deprecated, queryRenderedFeatures related tests in Annotations would need to get ported and decided to add the edge insets related query tests next to them. Verify frustum culling (render+queryRenderedFeatures) With different camera and edge insets setups. TODO: port Annotations tests.
Transform.Padding: Verify that coordinates take proper place on screen after applying edge insets.
LocalGlyphRasterizer: verify text rendering when applying padding.
Related to #11882 : both use projection matrix elements [8] and [9].
Alternative approach to this was to increase and offset map origin so that the screen would be a sub-rectangle in larger map viewport. This approach has a drawback of unecessary processing the items that are outside screen area.
Fixes #12107 , #12728 , navigation-sdks/issues/120
2019-05-28 14:38:01 +03:00
Łukasz Paczos
46ef2d86d2
[core] invoke optional resource path change completion listener
2019-05-24 15:03:55 +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
100eb61fa4
[core] Forward ImageManagerObserver::onRemoveUnusedStyleImages to MapObserver interface
2019-05-21 06:49:17 -07:00
Alexander Shalamov
0344ce36c4
[core] Define max cache size for ImageManager
2019-05-21 06:49:17 -07:00
Ander Conselvan de Oliveira
f210bbbb6c
[core] Don't use optional unique_ptr in function coversion code
...
Since unique_ptr is already nullable there is no need to wrap it in an
optional<>.
2019-05-21 12:14:22 +03:00
Ander Conselvan de Oliveira
33cfd080c2
[core] Fix most identity function with default legacy expression tests
...
Add handling of default value to the conversion of legacy identity
functions. The color and enum tests still don't pass though.
2019-05-21 12:14:22 +03:00
Mikhail Pozdnyakov
f2ad89c463
[core] Remove RenderLayerSymbolInterface
2019-05-19 18:15:33 +03:00
Konstantin Käfer
3a6ff7710f
[core] add gfx::UploadPass, split startRender into prepare and upload
2019-05-15 11:57:43 -07:00
Konstantin Käfer
179c5fe83b
[core] add gfx::CommandEncoder::present()
2019-05-15 11:57:43 -07:00
Konstantin Käfer
da5bd4d6e3
[core] use unique IDs for DrawScopes
2019-05-15 11:57:43 -07:00
Mikhail Pozdnyakov
7e77aff8df
[core] Make FileSource API clearer
2019-05-14 11:29:24 +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
Mikhail Pozdnyakov
cb73f0dd1c
[core] Remove clipping option from RenderTile and style::Layer
2019-05-08 15:18:33 +03:00
Alexander Shalamov
86b94e30e1
[core] Keep shared_ptr to thread pool in CustomGeometrySource
...
CustomGeometrySource should keep strong reference to shared thread
pool that is used by CustomTileLoader.
2019-05-03 10:01:19 +03:00
Konstantin Käfer
2489afdd0d
[build] change style code generator to sort properties alphabetically
...
JSON keys in our style specification don't have a defined order. This change sorts them alphabetically so that we can rely on the order remaining them same across code generation runs.
2019-05-02 17:44:18 +02: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
Mikhail Pozdnyakov
858097102d
[core] Render layers use synchronized buckets and paint properties
...
Actual for layers rendering the geometry tile data: line, fill, fill-extrusion, heatmap, circle, symbol (was updated in previous commits).
2019-04-17 17:21:41 +03:00
Mikhail Pozdnyakov
a0c83808c0
[core] Add FadingTiles layer type property
2019-04-17 17:21:41 +03:00
Mikhail Pozdnyakov
4b21560cf5
[core] Use style::LayerProperties in render layers, buckets and layouts.
2019-04-17 17:21:41 +03:00
Mikhail Pozdnyakov
1a66a02097
[core] Introduce style::LayerProperties interface and its implementations
2019-04-17 17:21:41 +03:00
Alexander Shalamov
905ca29866
[core] Enable 'symbol-sort-key' layout property and generate style code
2019-04-17 15:04:08 +03:00
Alexander Shalamov
e329492f0f
[core] Add 'auto' enum value to symbol-z-order layout property
2019-04-17 15:04:08 +03:00
Alexander Shalamov
300c91b46a
[core] Move should not call destructors
2019-04-05 22:35:04 +03:00
Konstantin Käfer
3ceabcd3ec
[core] clang-tidy fixes
2019-04-05 11:49:17 +02:00
Konstantin Käfer
7081d5e154
[core] move depth/stencil buffer debug viz to gfx::Context
2019-04-05 11:49:17 +02:00
Konstantin Käfer
1d58850d0c
[core] remove Renderer::flush
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
865f8a6c03
[core] add gfx::Renderable and gfx::OffscreenTexture
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
Mikhail Pozdnyakov
b39c71eea8
[core] Introduce variable text placement for point labels - Layout part
2019-03-29 16:18:41 +02:00
Mikhail Pozdnyakov
9fc42b9c3c
[core] auto value for 'text-justify' field
2019-03-29 16:18:41 +02:00
Mikhail Pozdnyakov
2b9a52f5e4
[core] Enable 'text-radial-offset' property
2019-03-29 16:18:41 +02:00
Mikhail Pozdnyakov
a6d8742e63
[core] Enable text-variable-anchor property
2019-03-29 16:18:41 +02: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
Sudarsana Babu Nagineni
11afef7825
[core] Add interface to change the orientation through MapOptions
2019-03-28 16:41:15 +02:00
Sudarsana Babu Nagineni
e639087c91
[core] Add getter for Map options
...
Instead of having individual getter for each Map option,
add a common getter for all Map options.
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
ac6855a473
[core] Fix signature of fluent interface setters
2019-03-23 09:12:44 +02:00
Bruno de Oliveira Abinader
03db58cdc1
[core] Replace shared_ptr with unique_ptr in {Map,Resource}Options
2019-03-22 18:54:48 +02:00