summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [core] Offline download must clear batch buffer at load interruptMikhail Pozdnyakov2019-12-191-1/+82
| | | | | | | Otherwise, the stale buffer data are processed again at the repeated load. It is causing various problems like missing load completion notification or crashes (if the previously used observer instance has been deleted).
* [core] Add unit test for calculateTileDistancesAlexander Shalamov2019-12-182-0/+28
|
* [core] Add unit test for getAnchors and remove unused fieldAlexander Shalamov2019-12-183-2/+133
|
* [core] Add unit test for tagged string's image sectionsAlexander Shalamov2019-12-021-0/+17
|
* [core] Add unit tests for Formatted classAlexander Shalamov2019-12-022-0/+52
|
* [core] Shape images in labels at bucket zoom levelAlexander Shalamov2019-12-021-1/+4
|
* [core] Use new 'SymbolTextAndIcon' program to draw icons in textAlexander Shalamov2019-12-022-11/+143
|
* [core] Store 'sdf' flag in vertex attributeAlexander Shalamov2019-12-022-17/+25
|
* [core] Shape images in labels and create image quadsAlexander Shalamov2019-12-023-15/+21
|
* [core] Pass images and evaluated layout text size to shapingAlexander Shalamov2019-12-021-3/+7
|
* [core] Add evaluated images to styled text sectionsAlexander Shalamov2019-12-021-3/+3
|
* [core] Add image sections to format expressionAlexander Shalamov2019-12-021-2/+5
|
* [core] Introduce Pass<> class and use it for SchedulerMikhail Pozdnyakov2019-12-022-8/+8
| | | | Thus we enforce client to retain the returned `Scheduler` objects.
* [core] Add OfflineDatabase.Pack unit testMikhail Pozdnyakov2019-12-021-0/+30
|
* [core] Introduce OfflineDatabase::runPackDatabaseAutomatically() APIMikhail Pozdnyakov2019-12-021-2/+3
| | | | | - added a unit test - Updated inline comments in default_file_source.hpp
* [core] Calculate GeoJSON tile geometries in a background threadMikhail Pozdnyakov2019-11-291-9/+33
| | | | | Call `mapbox::geojsonvt::GeoJSONVT::getTile()` in a background thread, so that the rendering thread is not blocked.
* [core][android][darwin] Fix GeoJSONOptions handlingMikhail Pozdnyakov2019-11-292-8/+6
| | | | | | - share the `GeoJSONOptions` instances using `Immutable<GeoJSONOptions>` - avoid extra copying - fix wrapping of the `GeoJSONOptions` instances in supercluster map/reduce lambdas. Previously, local variables were wrapped by reference.
* [core] Introduce Scheduler::GetSequenced() APIMikhail Pozdnyakov2019-11-281-0/+43
| | | | | | The newly introduced `Scheduler::GetSequenced()` returns sequenced schedulers from the cache limited to 10 instances, preventing from spawning too many threads.
* [tests] Increase test toleranceThiago Marcos P. Santos2019-11-271-1/+1
| | | | This test has been flaky on mac.
* [core] Update Source.GeoJSONSourceTilesAfterDataReset unit testMikhail Pozdnyakov2019-11-261-96/+46
|
* [test] Add test for priority of online requests for expired resourcesJuha Alanen2019-11-211-1/+76
|
* [core] Identation and build fixesMikhail Pozdnyakov2019-11-191-34/+31
|
* [core] Fix incorrect resizing of TileCacheSergey Yershov2019-11-192-0/+91
|
* [core] Add Style.SourceImplsOrder testMikhail Pozdnyakov2019-11-191-0/+22
|
* [core] Fix MapSnapshotter build failure on WindowsAnder Conselvan de Oliveira2019-11-132-4/+4
| | | | | | | | 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.
* [core] OfflineDatabase pack APIMikhail Pozdnyakov2019-11-121-11/+37
| | | | | | - introduce `OfflineDatabase::pack()` standing for incremental vacuum - make pack optional at offline region deletion - update `OfflineDatabase.DeleteRegion` test accordingly to the items above
* [core] Add Source.GeoJSONSourceTilesRemainAfterDataReset unit testMikhail Pozdnyakov2019-11-121-10/+34
|
* [core] Implement image expression (#15877)Alexander Shalamov2019-11-117-25/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [core] Bump gl-js version * [core] Implement image expression * [core] Use new image expression * [core] Coerce image expression to / from string * [core] Serialize evaluated image * [core] Pass available images to layout * [core] Pass images to evaluation context * [core] Set available flag value based on image availability * [core] Allow image coercion to boolean to indicate image availability * [core] Coalesce image expression * [core] Add image expression to next build system * [core] Align serialization format and evaluated type with gl-js * [core] Add images to expression evaluation method * [core] Add support for Image expression to expression test runner * [core] Unskip image expression tests * [core] Update unit tests * [core] Use image expression in annotation manager * [core] Add string to ImageExpression conversion * [core] Add image expression to expression dsl * [core] Convert tokens for implicitly created Image literal * [core] Fix clang format * [core] Split generated style code lines that are over 120 characters * [core] Add unit test for image expression equality * [core] Add image property expression evaluation unit test * [core] Unskip image expression render test * [core] Skip 'in' expression tests * [core] Ignore fill-pattern/update-feature-state render test * [core] Rename Image::serialize to Image::toValue
* [core] Add batch conversion of latLngs to/from screenCoords (#15891)zmiao2019-11-072-12/+53
| | | | | | * [core] Add batch conversion of latLng vs screenCoord * [core] Take the simple approach
* [core] Add Scheduler::scheduleAndReplyValue() APIMikhail Pozdnyakov2019-11-051-0/+19
|
* [render-test] Implement gfx probe for tracking gpu resourcesMikko Pulkki2019-10-307-21/+16
|
* [core] use individual textures for line dash patternsupstream/zmiao-testKonstantin Käfer2019-10-291-2/+2
| | | | | | | | This moves the LineAtlas from a shared texture that contained SDF dash patterns to use individual textures. Previously, the texture space was limited to a texture of 512 pixels height. Dash patterns were never removed (and are still never removed as of this patch), which means that this texture could fill up for styles that use a lot of different dash patterns. In particular, dash patterns for lines with a round line cap take up 15 pixels of texture height, limiting the amount of unique dash patterns to 34. While this was probably enough for rendering a single style, we quickly exhausted this number when reusing the Map object to render different styles. Instead of a global shared texture, we're now creating individual textures for every dash pattern. These textures are still cached so that we don't need to re-upload the texture on every frame.
* [core] Add Map.NoHangOnMissingImage unit testMikhail Pozdnyakov2019-10-281-0/+51
|
* [core] Do not make pending requests for already requested images.Mikhail Pozdnyakov2019-10-281-9/+3
| | | | | so that processing for the corresponding tile does not suspend and the rendering performance is not affected.
* Revert "[core] Revert coalescing requests to the client for the same missing ↵Mikhail Pozdnyakov2019-10-281-0/+24
| | | | | | image" This reverts commit 22132683797b5ea5cbe8622f77c01b399ad9c71e.
* [core] Revert coalescing requests to the client for the same missing imageMikhail Pozdnyakov2019-10-241-24/+0
|
* [core] Enable incremental vacuum for Offline DBMikhail Pozdnyakov2019-10-222-6/+46
| | | | Thus we avoid re-creating the whole database and keeping the backup file as it happens on calling VACUUM.
* [render-test] Implement fps benchmarking tests (#15803)Mikko Pulkki2019-10-222-5/+4
|
* [core] Update ImageManager.OnStyleImageMissingBeforeSpriteLoadedMikhail Pozdnyakov2019-10-171-2/+12
| | | | So that it checks pending image requests for a different requestor.
* [core] fix icon-text-fitKonstantin Käfer2019-10-141-190/+139
| | | | This fixes rendering by account for the 1px texture padding around icons that were stretched with icon-text-fit. We've added the 1px padding before, but didn't scale it accordingly when we are resizing the icon when it is stretched to fit the text. Adjusts the code to match the logic in GL JS.
* [core] Update ImageManager.OnStyleImageMissingBeforeSpriteLoaded unit testMikhail Pozdnyakov2019-10-101-0/+14
| | | | So that it checks missing images requests coalescing.
* [core] Introduce Scheduler::makeWeakPtr()Mikhail Pozdnyakov2019-10-091-0/+2
|
* [core] Decouple Scheduler interface from actor modelMikhail Pozdnyakov2019-10-041-1/+1
| | | | So that it is possible to schedule normal `std::function` and use `mapbox::base::WeakPtr`.
* [core] Suppress network requests for invisible tilesMikhail Pozdnyakov2019-10-021-1/+75
| | | | If the render source does not need rendering, we set necessity for its tiles to `optional`, and thus suppress network requests on tiles expiration.
* [core] Enable move semantics for StylePropertyMikhail Pozdnyakov2019-09-271-24/+24
|
* [core] Return enum layer property values as stringAnder Conselvan de Oliveira2019-09-271-3/+3
| | | | | | | | | | The output of Layer::getProperty is a mapbox::base::Value which is equivalent to JSON. When setting the value of an enum property via JSON its value would be a string, so it would be natural to return a string too. Also, the numbers generated depend on the enum definition. They are not part of the style spec.
* [core] Layer::getProperty supports layout propertiesMikhail Pozdnyakov2019-09-271-0/+9
|
* [core] Layer::getPaintProperty() -> Layer::getProperty()Mikhail Pozdnyakov2019-09-261-6/+6
|
* [core] LayerProperty -> StylePropertyMikhail Pozdnyakov2019-09-261-12/+12
|
* [core] Add Map.UniversalStyleGetter testMikhail Pozdnyakov2019-09-261-0/+73
|