summaryrefslogtreecommitdiff
path: root/test/util
Commit message (Collapse)AuthorAgeFilesLines
* [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
|
* [core] Replace unique_any with peer from mapbox-bindgenBruno de Oliveira Abinader2018-08-082-218/+194
|
* Add fuzz tests for TileCover and fix out of bounds access crash.Asheem Mamoowala2018-07-161-1/+58
|
* Fix TileCover asserts. The create_bounds_towards_* methods were treatingAsheem Mamoowala2018-07-161-0/+14
| | | | | all point arrays as rings. Simplify the logic to only compare against the next pt in the bound.
* [core] Harden Projection::project()Bruno de Oliveira Abinader2018-07-091-0/+43
|
* [core] Avoid blocking in Thread<Object> constructor (#12151)Anand Thakker2018-07-031-2/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Introduce AspiringActor, EstablishedActor This pair of objects represents the two-phase (parent-thread / child-thread) construction that's needed to support constructing Thread<Object> without blocking until the child thread is up and running. An `AspiringActor<O>` is responsible for: - ownership of the actor's `Mailbox` - allocating the memory for (but *not* constructing) the target object `O` Using these two pieces--the mailbox and a stable address for `O`--an `AspiringActor<O>` can accept messages for the target object, or provide `ActorRef<O>`s that do so, before the object has actually been constructed by the corresponding `EstablishedActor<O>`. (Such messages are queued in the mailbox until after the object is constructed.) This allows for an `AspiringActor<O>` to be created and safely used by a thread other than the one on which the target object will (eventually) live. An `EstablishedActor<O>` is responsible for managing the lifetime of the target object `O` and the open/closed state of the parent's `mailbox`. The `O` object's lifetime is contained by that of its owning `EstablishedActor<O>`: the `EstablishedActor` constructor executes the `O` constructor via "placement new", constructing it at the address provided by the parent `AspiringActor`, and the `~EstablishedActor` destructor similarly executes the `~O` destructor (after closing the mailbox). `EstablishedActor` should therefore live entirely on the thread intended to own `O`. * Remove Actor#{invoke,ask}
* [core] Fix issues in unique_anyJohn Firebaugh2018-06-251-4/+36
| | | | | | | * Eliminate unnecessary temporary in VTableStack::move, which also fixes calling the destructor on the incorrect instance * Make move consistent: it destructs the src, not the dest, which is always empty * delete doesn't need a null guard * Conversions to void* don't need a cast
* [core] Align URL token replacement behavior with GL JSJohn Firebaugh2018-05-181-0/+3
| | | | I.e. preserve unknown tokens in URLs rather than replacing them with an empty string.