Alexander Shalamov
e5cdc4ecf3
[core][android][darwin] Move number format to i18n
2019-09-26 10:55:47 +03:00
Alexander Shalamov
9c8295c6a6
[core][android][darwin] Move platform specific Collator impls from expression
...
Platform specific Collator implementations should not be part of an expression APIs.
2019-09-26 10:55:47 +03:00
Thiago Marcos P. Santos
3888af2460
[build] Move compression to platform
...
It depends on platform specific compression library.
2019-09-20 15:27:52 +03:00
Juha Alanen
46eab5f148
[core] Add SourceFeatureState class to handle feature states
2019-09-18 14:29:15 +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
Mikhail Pozdnyakov
63dd17e2bb
[core] Introduce TileRenderData
...
Remove rendering functionality from Tile implementations.
2019-07-04 16:56:43 +03:00
Juha Alanen
0ca8ea6f16
[core] Add number-format expression
2019-06-27 15:51:22 +03:00
Mikhail Pozdnyakov
658d68e38c
[core] Introduce RenderOrchestrator
2019-06-25 12:53:52 +03:00
Mikhail Pozdnyakov
4283c9bb34
[core] Introduce RenderTree
...
Split orchestration from rendering in the `Renderer::Impl` implementation.
2019-06-25 12:53:52 +03:00
Mikhail Pozdnyakov
a9abc43510
[core] Introduce PatternAtlas
2019-06-04 15:28:00 +03:00
Mikhail Pozdnyakov
b50aa497cc
[core] Introduce RenderTileSource
...
RenderTileSource is a base class for the render sources that provide render tiles.
* Removes repeated code
* Simplifies render source code refactoring and improves readability
2019-05-29 12:04:26 +03:00
Konstantin Käfer
7f9274035b
[core] refactor program object creation
2019-05-28 16:11:05 +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
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
Ander Conselvan de Oliveira
f2f2e64fc8
[core] Expose dsl::compound() internally
...
This will be used in a follow up patch by the function to expression
conversion code.
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
da5bd4d6e3
[core] use unique IDs for DrawScopes
2019-05-15 11:57:43 -07: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
Konstantin Käfer
20a807fdf3
[core] render extrusions directly in the main framebuffer
2019-05-08 12:25:22 +02: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
1a66a02097
[core] Introduce style::LayerProperties interface and its implementations
2019-04-17 17:21:41 +03:00
Konstantin Käfer
d7aaf83421
[core] introduce gfx::RenderPass
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
Konstantin Käfer
c02010ab6c
[core] move debug groups to gfx::CommandEncoder
2019-04-05 11:49:17 +02:00
Konstantin Käfer
543b678982
[core] introduce CommandEncoder object
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
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
Bruno de Oliveira Abinader
d5868d3da8
[core] Remove file source from public Map ctor
2019-03-20 21:30:08 +02:00
Konstantin Käfer
1e30fdac36
[core] move ProgramMap to within the gl::Program object
2019-03-20 15:40:47 +01:00
Konstantin Käfer
53ab65d811
[core] use constexpr string concatenation for uniform/attribute names
2019-03-20 15:40:47 +01:00
Konstantin Käfer
c8cfdb1ced
Merge pull request #14126 from mapbox/gfx-refactor-4
...
Graphics refactor #4
2019-03-15 20:31:12 +01:00
Ander Conselvan de Oliveira
5733440747
[core] Group Map LatLngBounds, min and max zoom methods
...
Group bounds, minimum and maximum zoom related methods together using
the new BoundOptions.
v2: Document that getBounds() initializes all optional fields.
- Add test for getBounds() on a map with default values.
2019-03-14 18:33:11 +02:00
Alexander Shalamov
8be135231d
[core] Add possibility of overriding paint properties inside format expression #14062
...
* [core] Add format override expression and formatted section to evaluation context
* [core] Add textColor to TaggedString's formatted section
* [core] Add FormatSectionOverrides and introduce overridable properties
* [core] Populate symbol layer paint properties for text sections
* [core] Add benchmark for style that uses text-color override
* [core] Add unit test for FormatOverrideExpression
* [core] Add unit test for FormatSectionOverrides
2019-03-13 17:14:53 +02:00
Konstantin Käfer
e27f330629
[core] add texture bindings to draw call instead of Context member fn
2019-03-12 11:03:54 +01:00
Konstantin Käfer
a7f151ab48
[core] move Texture to the gfx namespace
2019-03-12 11:03:54 +01: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
Sudarsana Babu Nagineni
744d92e763
[core] consolidate Axonometric rendering API
...
Instead of having individual APIs for setting axonometric
and skew options, create ProjectionMode struct that holds
all the relevant options for Axonometric rendering and
introduce setter/getter on the Map for those options.
2019-03-08 17:36:40 +02:00
Konstantin Käfer
8a8291d8f4
[core] introduce gfx::Context and move Buffer creation/update methods to it
2019-03-06 16:12:51 +01:00
Konstantin Käfer
458bb65510
[core] rename gl/*_buffer.hpp to gl/*_buffer_resource.hpp
2019-03-06 16:12:51 +01:00
Konstantin Käfer
3a57aa65d7
[core] move VertexBuffer<> to gfx namespace
2019-03-06 16:12:51 +01:00
Konstantin Käfer
4737a45383
[core] move IndexBuffer to gfx namespace
2019-03-06 16:12:51 +01:00
Konstantin Käfer
63e81b9aa8
[core] move VertexVector/IndexVector to gfx namespace
2019-03-06 16:12:51 +01:00
Konstantin Käfer
67a9dc35bf
[core] move CullFaceMode to gfx namespace
2019-03-01 09:33:37 +01:00
Konstantin Käfer
4372ce2b90
[core] move StencilMode to gfx namespace
2019-03-01 09:33:37 +01:00