summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [core] Limit pitch based on edge insets. Fix max Z calculation in getProjMatrix.Aleksandar Stojiljkovic2019-08-012-0/+38
| | | | | | | | | | | | | Patch partly fixes #15163 in a way that it doesn't allow loading tens of thousands of tiles and attempt to show area above horizon: Limit pitch based on edge insets. It is not too bad - current limit of 60 degrees stays active until center of perspective is moved towards the bottom, to 84% of screen height. The plan is to split removal of 60 degrees limit to follow up patch. Fix max Z calculation in getProjMatrix. TransformState::getProjMatrix calculation of farZ was complex with possibility to lead to negative z values. Replacing it with simpler, precise calculation: furthestDistance = cameraToCenterDistance / (1 - tanFovAboveCenter * std::tan(getPitch())); TransformState::getProjMatrix calculation of farZ was an aproximation. Replacing it with simpler, but precise calculation. Related to: #15163
* [core] Add unit test for grid indexAlexander Shalamov2019-07-301-0/+5
|
* [core] Added unit test for issue 15216Mikhail Pozdnyakov2019-07-261-0/+11
|
* [core] Avoid copying feature propertiesMikhail Pozdnyakov2019-07-251-1/+1
|
* [core] GeometryCollection must not be implicitly copiedMikhail Pozdnyakov2019-07-242-23/+23
|
* [core] Force getGeometries() return const refAlexander Shalamov2019-07-241-1/+1
|
* [core] Update CrossTileSymbolLayerIndex unit testAlexander Shalamov2019-07-231-1/+8
|
* [core] Symbol bucket uses shared layoutMikhail Pozdnyakov2019-07-222-6/+10
| | | | sizeof(SymbolBucket): 2296 -> 1024
* [core] Introduce TileRenderDataMikhail Pozdnyakov2019-07-042-8/+8
| | | | Remove rendering functionality from Tile implementations.
* [tests] Update test expecationsThiago Marcos P. Santos2019-06-284-0/+0
|
* [core] include Hiragana and Katakana glyph ranges to LocalGlyphRasterizerThiago Marcos P. Santos2019-06-281-8/+8
| | | | Fixes #14993
* [core] Add number-format expressionJuha Alanen2019-06-277-3/+49
|
* [core] Add storage unit tests for MapboxTileLimitExceededThiago Marcos P. Santos2019-06-191-0/+98
|
* [tests] Add unit tests for cache sizeThiago Marcos P. Santos2019-06-181-0/+134
|
* [core] Add method for setting a maximum size for the ambient cacheThiago Marcos P. Santos2019-06-181-13/+34
| | | | | | | - Removed this parameter from the constructor, now that we have a method to set it. - Add the method and enforce the limits if the ambient cache exceeds the size.
* [core] Clear/Invalidate should also work on non-tile resourcesThiago Marcos P. Santos2019-06-181-29/+59
| | | | | These methods were only affecting tiles, but they should really work on every resource like style, glyphs, etc.
* [core] Rename resetCache to resetDatabaseThiago Marcos P. Santos2019-06-181-3/+3
| | | | | Avoid confusion about what is being reset. In this case, the whole database and not only the ambient cache.
* [tests] Follow-up of previews PR, these tests need write permissionThiago Marcos P. Santos2019-06-181-2/+2
|
* [tests] Improve unit test for deleting offline region and concurrent useThiago Marcos P. Santos2019-06-131-12/+39
| | | | | | Test if the physical size of the database will also reduce. Clear the cache while adding resource on another connection.
* [tests] Add unit test for clearing the ambient cacheThiago Marcos P. Santos2019-06-131-11/+39
|
* [core] Update algorithm::updateTileMasks testsMikhail Pozdnyakov2019-06-101-78/+59
|
* [core] Introduce PatternAtlasMikhail Pozdnyakov2019-06-043-44/+86
|
* [test] add new OffscreenTexture testKonstantin Käfer2019-05-282-0/+16
|
* [core] refactor program object creationKonstantin Käfer2019-05-285-0/+29
|
* [core] Remove priority from the constructorThiago Marcos P. Santos2019-05-282-5/+8
| | | | Make the constructor less verbose and set good defaults.
* [core] Introduce usage tag for resourcesThiago Marcos P. Santos2019-05-281-1/+8
| | | | | | | Make the distinction if a resource is being requested for offline usage or if it will be used immediately. Fixes #14746
* [core] Offset viewport center when edge insets are specifiedAleksandar Stojiljkovic2019-05-285-14/+148
| | | | | | | | | | | | | | | | | | | | | The change is implemented in TransformState::getProjMatrix, the rest of the code is making sure that existing API contracts stay and there are tests verifyingrendering and render query processing only items within screen and given tolerance around screen edges. MapView: don't bake edge insets into relalculated camera center. Keep edge insets as property of camera in TransformState (similar to pitch, zoom, bearing) independent from specified camera center. Interpolate edge insets in animation. iOS Demo app: "Turn On/Off Content Insets" pitch the camera and navigate to convenient location in Denver, where streets are parallel to cardinal directions, to illustrate viewport center offset when edge insets are set. Tests: ViewFrustumCulling: although Annotations are deprecated, queryRenderedFeatures related tests in Annotations would need to get ported and decided to add the edge insets related query tests next to them. Verify frustum culling (render+queryRenderedFeatures) With different camera and edge insets setups. TODO: port Annotations tests. Transform.Padding: Verify that coordinates take proper place on screen after applying edge insets. LocalGlyphRasterizer: verify text rendering when applying padding. Related to #11882: both use projection matrix elements [8] and [9]. Alternative approach to this was to increase and offset map origin so that the screen would be a sub-rectangle in larger map viewport. This approach has a drawback of unecessary processing the items that are outside screen area. Fixes #12107, #12728, navigation-sdks/issues/120
* [core] invoke optional resource path change completion listenerŁukasz Paczos2019-05-241-0/+12
|
* [core] Add unit test for zero width space line breakingAlexander Shalamov2019-05-242-0/+96
|
* [core] Update ImageManager's unit test for onRemoveUnusedStyleImages APIAlexander Shalamov2019-05-211-13/+58
|
* [core] Remove binary shader supportThiago Marcos P. Santos2019-05-212-45/+0
| | | | | | | | | | | | | | | | | | | | | | 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
* [core] Fix most identity function with default legacy expression testsAnder Conselvan de Oliveira2019-05-211-1/+1
| | | | | Add handling of default value to the conversion of legacy identity functions. The color and enum tests still don't pass though.
* [core] Refactor HeadlessFrontend/Backend: GL separation and factory (#14692)Aleksandar Stojiljkovic2019-05-2111-11/+11
| | | | | Refactor out HeadlessFrontend and HeadlessBackend gl independent code to gfx. Define gl::HeadlessBackend as subclass, instantiated by gfx::HeadlessBackend static factory method. GL dependent tests are still using gl::HeadlessBackend directly (not through gfx).
* [tests] Add unit tests for offline data invalidationThiago Marcos P. Santos2019-05-211-0/+67
|
* [core] add gfx::UploadPass, split startRender into prepare and uploadKonstantin Käfer2019-05-152-7/+17
|
* [core] GeometryTile and TileLoader keep strong reference to FileSourceMikhail Pozdnyakov2019-05-146-51/+51
| | | | 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-147-11/+11
| | | | Avoid unnecessary glyph manager presence check in `Renderer::Impl::()`.
* [core] Make the BackgroundScheduler a singletonThiago Marcos P. Santos2019-05-1027-170/+98
| | | | | | | | | | - 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] Schedule invocation of onStyleImageMissing completion callback on the ↵Alexander Shalamov2019-05-091-0/+22
| | | | | | | | | 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.
* [build] change style code generator to sort properties alphabeticallyKonstantin Käfer2019-05-021-1/+1
| | | | 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.
* [test] Add unit test for clearCache APISudarsana Babu Nagineni2019-04-291-0/+14
|
* [core] change approach to stencil clipping to (almost) match JSKonstantin Käfer2019-04-293-564/+0
|
* [core] Add unit test for ImageManager::reduceMemoryUsageAlexander Shalamov2019-04-251-1/+60
|
* [core] Pass ImageManager to ImageRequestor's constructorAlexander Shalamov2019-04-251-4/+6
| | | | | This makes ImageRequestor API explicitly dependant on ImageManager, so that ImageRequestor can unregister itself from ImageManager on destruction.
* [core] Introduce `LayerRenderData`. Source::update() accepts layer properties.Mikhail Pozdnyakov2019-04-173-19/+44
|
* [core] Use `style::LayerProperties` in render layers, buckets and layouts.Mikhail Pozdnyakov2019-04-172-61/+0
|
* fix firing onStyleImageMissing after sprite has loaded (#14369)Ansis Brammanis2019-04-081-0/+75
|
* [core] Move should not call destructorsAlexander Shalamov2019-04-052-0/+101
|
* [core] clang-tidy fixesKonstantin Käfer2019-04-0510-51/+51
|
* [core] move GLContextMode to RendererBackendKonstantin Käfer2019-04-053-3/+6
|