summaryrefslogtreecommitdiff
path: root/test/util
Commit message (Collapse)AuthorAgeFilesLines
* Add unit tests for the free cameraMikko Pulkki2020-05-021-0/+259
|
* [core] Fix google-default-arguments errors in header filesThiago Marcos P. Santos2020-04-171-1/+1
| | | | As reported by clang-tidy-8.
* Add unit tests for Rotation interpolatorGali Nelle2020-04-081-0/+23
|
* Refactor tileCover to support lod tilesMikko Pulkki2020-04-062-23/+298
|
* [core] Add a callback for platform RunLoop integrationThiago Marcos P. Santos2020-03-111-0/+49
| | | | | | | | Platform integration callback for platforms that do not have full run loop integration or don't want to block at the Mapbox GL Native loop. It will be called from any thread and is up to the platform to, after receiving the callback, call RunLoop::runOnce() from the same thread as the Map object lives.
* Add Pass.NoCopy unit testMikhail Pozdnyakov2020-02-261-0/+16
|
* [test] Fix failing tests on iOSJuha Alanen2020-02-141-2/+2
|
* [core] Introduce Pass<> class and use it for SchedulerMikhail Pozdnyakov2019-12-021-7/+7
| | | | Thus we enforce client to retain the returned `Scheduler` objects.
* [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.
* [core] Implement image expression (#15877)Alexander Shalamov2019-11-111-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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 Scheduler::scheduleAndReplyValue() APIMikhail Pozdnyakov2019-11-051-0/+19
|
* [test] Add unit tests for mbgl::util::Timer covering timer cancellation ↵Maksim Skurydzin2019-09-191-1/+67
| | | | at/after its expiration (#15621)
* [core] Use mapbox::base::TypeWrapper instead of utils::peerMikhail Pozdnyakov2019-09-101-189/+0
|
* [core] Fix tileCover / TileCoordinate fromScreenCoordinate(#15442)Aleksandar Stojiljkovic2019-08-231-0/+14
| | | | | | | Remove unecessary tile coordinate unproject -> project step. Unproject+project isn't always a noop and this was the issue leading to wrong cover calculation in high pitch values. Fixes: https://github.com/mapbox/mapbox-gl-native/issues/15442
* [core] Limit pitch based on edge insets. Fix max Z calculation in getProjMatrix.Aleksandar Stojiljkovic2019-08-011-0/+35
| | | | | | | | | | | | | 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] GeometryCollection must not be implicitly copiedMikhail Pozdnyakov2019-07-241-22/+22
|
* [test] add new OffscreenTexture testKonstantin Käfer2019-05-281-0/+16
|
* [core] refactor program object creationKonstantin Käfer2019-05-281-0/+8
|
* [core] Refactor HeadlessFrontend/Backend: GL separation and factory (#14692)Aleksandar Stojiljkovic2019-05-211-1/+1
| | | | | 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] add gfx::UploadPass, split startRender into prepare and uploadKonstantin Käfer2019-05-151-2/+2
|
* [core] Make the BackgroundScheduler a singletonThiago Marcos P. Santos2019-05-103-23/+21
| | | | | | | | | | - 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-053-13/+13
|
* [core] refactor RendererBackendKonstantin Käfer2019-04-051-8/+8
|
* [core] move BackendScope to gfx namespaceKonstantin Käfer2019-04-051-3/+3
|
* [core] add gfx::Renderable and gfx::OffscreenTextureKonstantin Käfer2019-04-051-3/+4
|
* [core] add getResource template to gfx::*Resource classesKonstantin Käfer2019-04-051-1/+1
|
* [core] Include pixelRatio property in MapOptionsSudarsana Babu Nagineni2019-03-281-6/+6
| | | | Move pixelRatio property from Map constructor to MapOptions.
* [core] Add setter/getter for size property in MapOptionsSudarsana Babu Nagineni2019-03-281-6/+6
|
* [core] Remove file source from public Map ctorBruno de Oliveira Abinader2019-03-201-13/+14
|
* [core] Get FileSource via UpdateParameters in Renderer::ImplBruno de Oliveira Abinader2019-03-131-3/+3
|
* [core] Add possibility of overriding paint properties inside format ↵Alexander Shalamov2019-03-131-1/+1
| | | | | | | | | | | | | | | | | | expression #14062 * [core] Add format override expression and formatted section to evaluation context * [core] Add textColor to TaggedString's formatted section * [core] Add FormatSectionOverrides and introduce overridable properties * [core] Populate symbol layer paint properties for text sections * [core] Add benchmark for style that uses text-color override * [core] Add unit test for FormatOverrideExpression * [core] Add unit test for FormatSectionOverrides
* [core] add texture bindings to draw call instead of Context member fnKonstantin Käfer2019-03-121-1/+2
|
* [core] move Texture related enums to gfx namespaceKonstantin Käfer2019-03-121-1/+1
|
* [core] Add MapOptions to define properties of MapSudarsana Babu Nagineni2019-03-081-3/+5
| | | | | | 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-1/+1
|
* [core] Remove map zoom setters/gettersBruno de Oliveira Abinader2019-03-041-2/+2
|
* [core] Simplify util::peerMikhail Pozdnyakov2019-02-281-26/+21
| | | | Remove custom vtable, base implementation on `std::unique_ptr`.
* [core] Switch to the new OpenGL abstractionThiago Marcos P. Santos2019-02-121-1/+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,ios,macos] Updates default styles to streets v11, etc. (#13585)Julian Rex2018-12-181-2/+2
|
* [core] Cleanup Transform, use {jump,ease}To() insteadBruno de Oliveira Abinader2018-11-271-5/+3
|
* [build] Update to geometry v1.0.0Bruno de Oliveira Abinader2018-11-131-1/+1
|
* [core] Change toLowerHex to produce lower hex sequencesAlexander Shalamov2018-11-071-1/+1
|
* [core] don't use <sstream> and <iomanip> for string constructionKonstantin Käfer2018-10-231-0/+8
|
* [core] add the ability to stringy numbers as hexKonstantin Käfer2018-10-231-0/+11
|
* [core] add ability to stringify doubles that are integer with and without ↵Konstantin Käfer2018-10-231-0/+5
| | | | trailing ".0"
* [core] deduplicate dtoa() from RapidJSON and add testsKonstantin Käfer2018-10-231-0/+13
|
* [core] Initial implementation of 'format' expressionChris Loer2018-10-151-1/+3
|
* [linux,qt] Remove remainder of WebP supportKonstantin Käfer2018-09-132-30/+2
|
* [android] add support for gnustlKonstantin Käfer2018-09-111-13/+13
|