summaryrefslogtreecommitdiff
path: root/test/api
Commit message (Collapse)AuthorAgeFilesLines
* Use single threaded fixture logAlexander Shalamov2020-04-151-3/+2
|
* [test] Run Annotations DebugSparse test only with OpenGL rendererJuha Alanen2020-03-121-0/+4
|
* [build] Adding a build flag to build without GL if needed (#16120)Thomas Moenicke2020-02-031-5/+5
| | | | | | * [build] Adding a build flag to build without GL if needed * [build] Moving custom layer to mbgl/gl
* [core][android][darwin] Fix GeoJSONOptions handlingMikhail Pozdnyakov2019-11-291-3/+3
| | | | | | - 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] Implement image expression (#15877)Alexander Shalamov2019-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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
* [render-test] Implement gfx probe for tracking gpu resourcesMikko Pulkki2019-10-304-6/+5
|
* [tests] Add feature state unit testJuha Alanen2019-09-181-0/+16
|
* [core] refactor program object creationKonstantin Käfer2019-05-281-0/+4
|
* [core] Offset viewport center when edge insets are specifiedAleksandar Stojiljkovic2019-05-281-0/+67
| | | | | | | | | | | | | | | | | | | | | 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] Refactor HeadlessFrontend/Backend: GL separation and factory (#14692)Aleksandar Stojiljkovic2019-05-216-6/+6
| | | | | 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).
* [core] Make the BackgroundScheduler a singletonThiago Marcos P. Santos2019-05-106-25/+12
| | | | | | | | | | - 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] clang-tidy fixesKonstantin Käfer2019-04-051-4/+4
|
* [core] move BackendScope to gfx namespaceKonstantin Käfer2019-04-052-2/+2
|
* [core] Include pixelRatio property in MapOptionsSudarsana Babu Nagineni2019-03-286-20/+14
| | | | Move pixelRatio property from Map constructor to MapOptions.
* [core] Add setter/getter for size property in MapOptionsSudarsana Babu Nagineni2019-03-286-12/+12
|
* [core] Remove file source from public Map ctorBruno de Oliveira Abinader2019-03-206-30/+26
|
* [core] Group Map LatLngBounds, min and max zoom methodsAnder Conselvan de Oliveira2019-03-141-5/+5
| | | | | | | | Group bounds, minimum and maximum zoom related methods together using the new BoundOptions. v2: Document that getBounds() initializes all optional fields. - Add test for getBounds() on a map with default values.
* [core] Get FileSource via UpdateParameters in Renderer::ImplBruno de Oliveira Abinader2019-03-136-6/+6
|
* [core] Add MapOptions to define properties of MapSudarsana Babu Nagineni2019-03-086-6/+15
| | | | | | To simplify the Map constructor, introduce MapOptions interface to define the properties that can be set on a Map.
* [core] Transform{State}: s/angle/bearing/Bruno de Oliveira Abinader2019-03-041-2/+2
|
* [core] Remove map bearing setters/gettersBruno de Oliveira Abinader2019-03-041-1/+1
|
* [core] Remove map zoom setters/gettersBruno de Oliveira Abinader2019-03-044-17/+16
|
* [core] Switch to the new OpenGL abstractionThiago Marcos P. Santos2019-02-122-2/+3
| | | | | | This patch will make Mapbox GL Core never use OpenGL directly. We should consider locking into OpenGL ES 2.0 to simplify the code path and remove #ifdefs.
* [core] Add unit tests for queryFeatureExtensionsAlexander Shalamov2018-12-121-0/+147
|
* [build] Update to geometry v1.0.0Bruno de Oliveira Abinader2018-11-131-4/+4
|
* [core] Fix querying for annotations near tile boundaries at high zoom.Chris Loer2018-08-141-0/+13
| | | | | | | | Fixes issue #12472. This commit doesn't address the underlying issues that come from symbolAnnotationTree using a slightly lower precision coordinate system than the annotations themselves. Instead, it just puts a small padding around each tile when it queries for tile data, so that symbols right at the tile boundary will be included in both tiles. The rendering/querying code will take care of only displaying one instance. The padding is in global coordinates, so at higher zoom the padding will be larger in tile units -- this is consistent with precision loss also being greater at higher zoom.
* Fix compilation errors with libc++ on QNX 7Sudarsana Babu Nagineni2018-07-301-1/+1
| | | | | | | | | | This patch fixes the compilation errors on QNX 7: 1) QNX 7 compiler (i.e qcc based GCC 5.4.0 with libc++ from LLVM) has a limited c++11 feature support and causing the compilation errors with the inheriting constructors. This fixes the issues by providing the required constructors explicitly. 2) Resolves an ambiguous overload error with optional<T>
* [core] Replace use of *Stops with expressions DSLJohn Firebaugh2018-06-291-9/+11
|
* [tests] Replaced the ZoomHistory test with a render testJohn Firebaugh2018-06-281-71/+0
|
* [core] wrap glGetString in `MBGL_CHECK_ERROR` tooKonstantin Käfer2018-05-241-1/+1
|
* [core] Convert "legacy" filters directly into expressions (#11610)Lucas Wojciechowski2018-05-101-6/+9
| | | Ports the specialized filter-* expressions from GL JS, adding them to src/mbgl/style/expression/compound_expression.cpp
* Use a host interface for CustomLayer instead of function pointers (#11553)Asheem Mamoowala2018-04-021-22/+16
| | | | | | Use a host interface for CustomLayer instead of function pointers Co-authored-by: Julian Rex <julian.rex@mapbox.com>
* [core] don't tie Annotation geometries to Map maxzoomKonstantin Käfer2018-01-021-0/+16
| | | | Instead, geometry generation via GeoJSONVT is now bound to the hardcoded limit of the annotation tile source.
* [core] Custom Geometry SourcesAsheem Mamoowala2017-11-221-0/+71
|
* [core] Split MapMode::Still into Static and TileAnsis Brammanis2017-11-176-6/+6
| | | | | `Tile` makes sure the symbols in the resulting tile are tileable while symbols in `Still` match rendering in `Continuous` mode.
* [core] Update unit tests for viewport collision.Chris Loer2017-11-171-4/+4
| | | | Add 'GridIndex' unit test.
* [core] Reset zoom history state in still modeBruno de Oliveira Abinader2017-09-151-0/+6
|
* [test] Re-added API.ZoomHistoryBruno de Oliveira Abinader2017-08-221-0/+65
|
* [test] Added API.RecycleMapUpdateImages testBruno de Oliveira Abinader2017-08-141-0/+58
|
* [all] Merge View into RendererBackendJohn Firebaugh2017-07-261-1/+1
|
* [node, tests] Consolidate headless rendering logic in HeadlessFrontendJohn Firebaugh2017-07-264-83/+55
|
* [core] Remove API tests that are covered by node testsJohn Firebaugh2017-07-262-151/+0
|
* [core] Replace API.ZoomHistory test with integration testJohn Firebaugh2017-07-261-63/+0
|
* [test] allow only a single shared display to avoid egl errorsIvo van Dongen2017-07-186-7/+7
|
* [core] rename backend to renderer backendIvo van Dongen2017-07-186-6/+6
|
* [core] renderer interfaceIvo van Dongen2017-07-186-36/+72
|
* [core] split backend from mapobserverIvo van Dongen2017-07-186-7/+7
|
* [test] Added API.ZoomHistoryBruno de Oliveira Abinader2017-07-041-0/+62
|
* [test] Use test::checkImage in API.RepeatedRenderBruno de Oliveira Abinader2017-07-041-9/+5
|