Commit Graph

3910 Commits

Author SHA1 Message Date
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
d7aaf83421 [core] introduce gfx::RenderPass 2019-04-05 11:49:17 +02:00
Konstantin Käfer
b1a2513b61 [core] test OffscreenTexture renderability before using them 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
4053776c27 [core] use unique names for debug segments 2019-04-05 11:49:17 +02:00
Konstantin Käfer
4f735db9d8 [core] move RenderParameters creation to a later stage 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
ebd8508032 [core] add getResource template to gfx::*Resource classes 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
5270b2ffbd [core] move supportsHalfFloatTextures to gfx::Context 2019-04-05 11:49:17 +02:00
Konstantin Käfer
394e2aa717 [core] prefer static_cast for casts to derived classes 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
Mikhail Pozdnyakov
35bcb7c072 [core] Pass crossfade parameters by const reference 2019-04-05 11:24:57 +03:00
Mikhail Pozdnyakov
1a5b933983 [core] Minor performance tweaks in renderer impl 2019-04-04 20:28:23 +03:00
Mikhail Pozdnyakov
4b19324c74 [core] Renderer: initialize render items and render sources in the same cycle 2019-04-04 20:28:23 +03: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
Thiago Marcos P. Santos
805b140245 [core] Disable binary programs until we fix #14294 2019-04-02 19:30:03 +03:00
Mikhail Pozdnyakov
ebe6f7dea3 [core] Remove RenderLinePaintProperties
This patch removes the `RenderLinePaintProperties` by
making `LineFloorWidth` part of the `style::LinePaintProperties`.

It normalizes paint properties evaluation for the line layer.
2019-04-02 17:56:16 +03:00
Mikhail Pozdnyakov
45e8154d33 [core] Simplify render symbol layer initialization
Obviate few extra calls from the renderer impl parts initializing symbol layers.
2019-04-02 17:40:53 +03:00
Mikhail Pozdnyakov
94d8cb4f7f [core] Single line optimization for variable label placement 2019-03-29 16:18:41 +02:00
Mikhail Pozdnyakov
2292623bc6 [core] Introduce variable text placement for point labels - Placement part 2019-03-29 16:18:41 +02:00
Alexander Shalamov
cb64dbe0d6 [core] Introduce variable text placement for point labels - Render part 2019-03-29 16:18:41 +02:00
Alexander Shalamov
dbbfc4a494 Export hideGlyphs and addDynamicAttributes symbols 2019-03-29 16:18:41 +02: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
Alexander Shalamov
4e335d0b05 [core] Traverse expression tree when checking for property overrides
Before this change, symbol layer was only checking whether top level
'text-field' layout property expression is FormatExpression and if it
has paint property overrides. This change takes into account that
'text-field' might have nested expressions, thus, requires traversal
over child expressions.

Fixes: #14254
2019-03-28 22:27:59 +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
Konstantin Käfer
7f28afc507 [core] don't access empty texture pos optionals when buckets are out of sync 2019-03-27 11:21:19 +01:00
Łukasz Paczos
419bfbe0eb [core] harden fetching camera for bounds when padding is excessive 2019-03-25 17:53:55 +01: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
Bruno de Oliveira Abinader
d5868d3da8 [core] Remove file source from public Map ctor 2019-03-20 21:30:08 +02:00
Bruno de Oliveira Abinader
d1762d7111 [core] Cleanup Map::Impl ctor 2019-03-20 21:30:08 +02:00
Thiago Marcos P. Santos
3122df7e50 [core] Expose a way of flushing the graphics pipeline
Useful for apps before going to background that are
restricted by the OS of performing any operation.
2019-03-20 18:47:15 +02:00
Konstantin Käfer
f86cc81680 [core] move cleanup to gfx::Context 2019-03-20 15:40:47 +01: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