summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [core] add gfx::UploadPass, split startRender into prepare and uploadKonstantin Käfer2019-05-1587-529/+924
|
* [core] don't upload empty buffersKonstantin Käfer2019-05-152-9/+10
|
* [core] use float for storing opacity attributeKonstantin Käfer2019-05-152-2/+2
|
* [core] add gfx::CommandEncoder::present()Konstantin Käfer2019-05-154-0/+12
|
* [core] use unique IDs for DrawScopesKonstantin Käfer2019-05-1513-24/+70
|
* [core] GeometryTile and TileLoader keep strong reference to FileSourceMikhail Pozdnyakov2019-05-147-11/+14
| | | | Thus we fix a potential bug: if `Renderer` outlives the `Map` it will hold a stale reference to the `FileSource` instance.
* [core] Create glyph manager at renderer construction timeMikhail Pozdnyakov2019-05-145-21/+20
| | | | Avoid unnecessary glyph manager presence check in `Renderer::Impl::()`.
* [core] RenderTile shall never be created for a not renderable tileMikhail Pozdnyakov2019-05-145-19/+11
| | | | | | | | A RenderTile is already never created for a not renderable tile, guarantied by the checks in `updateRenderables()`. However, the client code had plenty of `isRenderable()` checks in the render path, which complicated the code and affected rendering performance. This patch removes the unneeded checks from the client code and puts an assertion to `TilePyramid::addRenderTile()`.
* Refactor: coordinatePointMatrix skip recomputation (#14507)Aleksandar Stojiljkovic2019-05-132-6/+6
| | | | | | | | coordinatePointMatrix is always used with getZoom(): Projection::worldSize(scale) / std::pow(2, z) is computed as scale * util::tileSize / std::pow(2, z) scale is equal to std::pow(2, z). ____________________________________=> Projection::worldSize(scale) / std::pow(2, z) => util::tileSize.
* [core] Make the BackgroundScheduler a singletonThiago Marcos P. Santos2019-05-1020-42/+128
| | | | | | | | | | - 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`.
* [core] Make ActorRef methods constMikhail Pozdnyakov2019-05-101-1/+1
| | | | So that the lambdas calling these methods do not have to be mutable.
* [core] Schedule invocation of onStyleImageMissing completion callback on the ↵Alexander Shalamov2019-05-092-9/+26
| | | | | | | | | same thread Before this change, ImageManger's 'done' callback for onStyleImageMissing observer notification that was created on renderer thread, could be called from different thread, therefore, is not thread safe. For example, on Android platform, callback was invoked from UI thread. This change makes callback to be scheduled on originating thread.
* [core] Failed sprite requests do not block tiles renderingMikhail Pozdnyakov2019-05-091-0/+3
|
* [core] Remove clipping option from RenderTile and style::LayerMikhail Pozdnyakov2019-05-0813-14/+0
|
* [core] upgrade mapbox-gl-js pin to the most recent versionKonstantin Käfer2019-05-0833-659/+689
|
* [core] render extrusions directly in the main framebufferKonstantin Käfer2019-05-0825-721/+604
|
* [core] Placement order matches viewport-y sortMikhail Pozdnyakov2019-05-083-166/+172
| | | | | | | | Symbols are placed accordingly to their viewport Y order, if the style `symbol-z-order` is set to `viewport-y`. This improves rendering of symbol layers, where icons are allowed to overlap but not text.
* [core] Guard access to CustomTileLoader's data members with mutexAlexander Shalamov2019-05-032-4/+9
|
* [core] Keep shared_ptr to thread pool in CustomGeometrySourceAlexander Shalamov2019-05-031-1/+2
| | | | | CustomGeometrySource should keep strong reference to shared thread pool that is used by CustomTileLoader.
* [build] change style code generator to sort properties alphabeticallyKonstantin Käfer2019-05-0219-1746/+1746
| | | | 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.
* [build] change special casing for LineFloorWidth in shader generationKonstantin Käfer2019-05-022-17/+10
|
* [core] Less strict rules for adding render layers to sourcesMikhail Pozdnyakov2019-04-293-10/+20
|
* [core] change approach to stencil clipping to (almost) match JSKonstantin Käfer2019-04-2924-394/+139
|
* [core] Store type of renderable segment when sorting symbols by keyAlexander Shalamov2019-04-261-15/+31
|
* [core] RendererImpl::dumDebugLogs() -> dumpDebugLogs()Mikhail Pozdnyakov2019-04-253-3/+3
|
* [core] Create ImageManager at renderer constructionMikhail Pozdnyakov2019-04-251-17/+12
|
* [core] Pass ImageManager to ImageRequestor's constructorAlexander Shalamov2019-04-254-7/+19
| | | | | This makes ImageRequestor API explicitly dependant on ImageManager, so that ImageRequestor can unregister itself from ImageManager on destruction.
* [core] Track missing style images that were provided by clientAlexander Shalamov2019-04-253-5/+36
| | | | | | - Track images provided by client thruough onStyleImageMissing API - Handle reduceMemoryUsage in ImageManager, via Renderer API - Release client provided images when no tiles are using them
* [core] Updated script detection for Unicode 12.1Minh Nguyễn2019-04-171-2/+13
| | | | Updated script detection files to reflect changes in Unicode 12.1.
* [core] Render layers use synchronized buckets and paint propertiesMikhail Pozdnyakov2019-04-177-49/+64
| | | | Actual for layers rendering the geometry tile data: line, fill, fill-extrusion, heatmap, circle, symbol (was updated in previous commits).
* [core] Simplify RenderLayer interface.Mikhail Pozdnyakov2019-04-177-30/+12
|
* [core] Update `style::LayerProperties` instances in tilesMikhail Pozdnyakov2019-04-1711-85/+94
|
* [core] Add `FadingTiles` layer type propertyMikhail Pozdnyakov2019-04-1711-11/+23
|
* [core] Introduce `LayerRenderData`. Source::update() accepts layer properties.Mikhail Pozdnyakov2019-04-1739-113/+122
|
* [core] Use `style::LayerProperties` in render layers, buckets and layouts.Mikhail Pozdnyakov2019-04-1749-386/+366
|
* [core] Introduce `style::LayerProperties` interface and its implementationsMikhail Pozdnyakov2019-04-1722-3/+360
|
* [core] Sort cross-tile symbol segments using symbol-sort-keyAlexander Shalamov2019-04-173-285/+422
|
* [core] Set sortKey for symbol segments during layout phaseAlexander Shalamov2019-04-173-11/+30
|
* [core] Add optional sortKey to segmentAlexander Shalamov2019-04-171-2/+6
|
* [core] Enable 'symbol-sort-key' layout property and generate style codeAlexander Shalamov2019-04-172-40/+69
|
* [core] Add 'auto' enum value to symbol-z-order layout propertyAlexander Shalamov2019-04-172-1/+2
|
* Use emplace_hint for inserting render itemsMikhail Pozdnyakov2019-04-121-3/+3
|
* [core] Order render items properly across several sourcesMikhail Pozdnyakov2019-04-121-21/+30
|
* [ios] run glFlush when reducing memory and don't reduce memory while in ↵Konstantin Käfer2019-04-111-0/+2
| | | | background (#14383)
* [core] Pass only visible render layers to source in rendererMikhail Pozdnyakov2019-04-092-7/+5
| | | | | | | This simplifies the code and make it slightly more performant. Also, this change enables initialization the `RenderTile.used` field from inside the source (currently done in render layers).
* fix firing onStyleImageMissing after sprite has loaded (#14369)Ansis Brammanis2019-04-081-6/+7
|
* [core] refactor ThreadLocal backendKonstantin Käfer2019-04-081-13/+25
|
* [core] clang-tidy fixesKonstantin Käfer2019-04-0556-330/+331
|
* [core] introduce gfx::RenderPassKonstantin Käfer2019-04-0526-39/+189
|
* [core] test OffscreenTexture renderability before using themKonstantin Käfer2019-04-054-4/+14
|