summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [core] Add unit test for pausing & resuming database fsupstream/alexshalamov_dbfs_pause_resumeAlexander Shalamov2020-01-272-0/+26
|
* Add CrossTileSymbolLayerIndex.offscreenSymbols testMikhail Pozdnyakov2020-01-221-1/+54
|
* [core] Do not index and place the off-screen symbols for overscaled tilesMikhail Pozdnyakov2020-01-221-11/+11
| | | | | For overscaled tiles the viewport might be showing only a small part of the tile, so we filter out the off-screen symbols to improve the performance.
* [core] Simplify CrossTileSymbolIndex::addLayer()Mikhail Pozdnyakov2020-01-221-15/+15
|
* [core] implement stretchable icons for icon-text-fitKonstantin Käfer2020-01-152-20/+21
|
* [core] move icon rotation from shaping to quad generation to mirror JSKonstantin Käfer2020-01-152-24/+25
|
* [core] Remove unused WritingMode from getIconQuadsKonstantin Käfer2020-01-151-12/+12
|
* [core] Change ImagePosition from storing non-padded rect to padded rect to ↵Konstantin Käfer2020-01-151-1/+1
| | | | mirror the JS implementation
* [core] parse stretchX, stretchX, and content from sprite JSON filesKonstantin Käfer2020-01-151-139/+317
|
* [core] Add stretches and content to style::ImageKonstantin Käfer2020-01-152-23/+96
|
* [core] getGlyphQuad -> getGlyphQuadsKonstantin Käfer2020-01-151-12/+47
|
* [core] Modularize FileSource codebase (#15768)Alexander Shalamov2020-01-1321-348/+386
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [core] Introduce FileSourceManager and use it for default platform impl - Add `FileSourceManager` interface that provides access to `FileSource` instances and means of registering / unregistering `FileSource` factories - Split `DefaultFileSource` into smaller parts - Add `DatabaseFileSource` interface and it's default implementation - Remove inter-dependencies between concrete `FileSource` classes * [build] Add files to next build system * [core] Add generic property setters / getters * [core] Remove setOnlineStatus from OnlineFileSource interface * [core] Hide threading implementation details from DatabaseFileSource interface * [core] Make DB file source methods virtual * [core] Add documentation for DatabaseFileSource and rename one method * [core] Use simple callback instead of ActorRef * [core] Remove ActorRef from OnlineFileSource public header * [core] Add callback to FileSource::forward async API * [core] Pass OfflineRegionDefinition by value * [core] Update tests to use modular file sources * [core] Update unit tests * [core] Update unit tests after rebase * [core] Backport low prio fix for cached requests * [core] Backport pack database * [core] Return removed factory from unRegisterFileSourceFactory * [core] Rename shadowed args in onlinefilesource * [core] Remove simple std::function callback aliases * [core] Expose online file source property keys in public header file * [test-runner] Add proxy file source test runner * [cache] Update mbgl-cache utility to use new file source * [metrics] Rebaseline binary size metrics * [offline] Update offline utility * [core] Update changelog
* [test] Increase the threshold for Map.Offline test on AndroidJuha Alanen2020-01-101-1/+4
|
* [test] Skip number-format expression tests on AndroidJuha Alanen2020-01-101-0/+6
|
* [test] Run unit tests as NativeActivity application on AndroidJuha Alanen2020-01-1019-8/+412
|
* [android][core] Add `Map::latLngBoundsForCameraUnwrapped` and jni binding ↵Peng Liu2020-01-091-0/+42
| | | | | | | | | for `getVisibleCoordinateBounds`. (#16069) * [android] Add getVisibleCoordinateBounds method. * Fix Map::latLngBoundsForCamera, add Android binding for getVisibleRegionBounds. * Add unit tests for CameraToLatLngBoundsWithRotation and CameraToLatLngBoundsCrossDateLine. * Move API breaking changes to a new method name latLngBoundsForCameraUnwrapped.
* [core] Offline download must clear batch buffer at load interruptMikhail Pozdnyakov2019-12-181-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).
* Include padding when testing camera scale in cameraForLatLngBoundsAleksandar Stojiljkovic2019-12-171-10/+24
| | | | | Repurpose LatLngBoundsToCameraWithBearingAndPitch to test scaling and camera setup, both with and without padding. This adds testing of path not covered in mapbox/mapbox-gl-native-ios#59.
* [core] Enable 'line-sort-key' and 'fill-sort-key' layout properties (#15839)Andrew Hay Kurtz2019-12-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Generate style code for 'line-sort-key' and 'symbol-sort-key' - Add new layout properties to FillLayer::Impl, FillBucket, and FillLayerFactory - Fix consistency of paint and layout properties type alias usage in FillBucket, LineBucket - Add optional feature sorting to fill and line Layout creation - Enable node render tests for fill-sort-key and line-sort-key - Fix FillBucket test construction - Prefer emplace_back to push_back for PatternFeature container - Fix buggy static_cast for PatternFeature indices - Maintain sort of features as they are created - Switch pattern layout features container to list from vector for better insert performance - Fix formatting expected by sanity check - Use subclass PatternLayoutSorted to work around lack of template functions - Fix to retain source order for features with equivalent sort keys during sorting - [core] Fix clang-format - [core] Address review comments - [core] Pass inserting strategy class at compile time - [core] Use sorted strategy only if sort key is defined in layout - [core] Update style generator - [core] Merge PatternLayout and PatternLayoutSorted classes - Use static methods for inserter strategies - Merge PatternLayout and PatternLayoutSorted classes
* [tests] Fix -Werror=shadow issues in the unit testsThiago Marcos P. Santos2019-12-124-124/+85
|
* [core] Add unit test for calculateTileDistancesAlexander Shalamov2019-12-092-0/+28
|
* [core] Add unit test for getAnchors and remove unused fieldAlexander Shalamov2019-12-093-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
|