summaryrefslogtreecommitdiff
path: root/test/util
Commit message (Collapse)AuthorAgeFilesLines
...
* [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.
* [core] Streaming TileCover for polygonal regions (#11267)Asheem Mamoowala2018-04-262-17/+223
| | | A per-tile streaming algorithm for tile cover on points, lines, and polygons. Works for individual zoom levels, and not zoom ranges.
* [core] Support a range of zooms in TileRange. Accounts for TilePyramid ↵Asheem Mamoowala2018-02-191-1/+12
| | | | requesting parent tiles of ideal zoom tiles.
* [core] prioritize Thread::pause() callsKonstantin Käfer2018-02-061-0/+14
|
* Support TileJSON bounds property (#10701)Asheem Mamoowala2018-01-051-0/+56
| | | | | | | | * [core] Parse TileJSON bounds property * [core] Add TileRange and LatLngBounds::contains(CanonicalTileID) Move LatLngBounds::contains impl to cpp file * [core] Skip tile creation outside of tileset bounds * [core] Fix TileRange for wrapped bounds and use for CustomTileLoader instead of LatLngBounds comparisons for tiles.
* [core] Support wrapped bounds in LatLngBounds::contains and ↵Asheem Mamoowala2017-12-071-3/+122
| | | | LatLngBounds::intersect.
* [core, ios, macos] Implement unique_any and remove linb::anyAsheem Mamoowala2017-11-221-0/+186
|
* [core] Split MapMode::Still into Static and TileAnsis Brammanis2017-11-171-3/+3
| | | | | `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-0/+53
| | | | Add 'GridIndex' unit test.
* [core] Add LatLngBounds::contains(const LatLngBounds&)Asheem Mamoowala2017-10-301-0/+6
|
* [core] Move SourceType to the 'style' namespaceAnand Thakker2017-10-161-0/+1
|
* Fast tileCount with help from @mapbox/sphericalmercator moduleAsheem Mamoowala2017-09-081-0/+9
|
* [node, tests] Consolidate headless rendering logic in HeadlessFrontendJohn Firebaugh2017-07-262-62/+37
|
* [test] allow only a single shared display to avoid egl errorsIvo van Dongen2017-07-182-3/+3
|
* [core] rename backend to renderer backendIvo van Dongen2017-07-182-2/+2
|
* [core] renderer interfaceIvo van Dongen2017-07-181-13/+35
|
* [core] split backend from mapobserverIvo van Dongen2017-07-181-7/+9
|
* [core] Make sure ThreadLocal will not own the pointer it is managingThiago Marcos P. Santos2017-07-141-10/+18
| | | | | | | | | | | | | | ThreadLocal should not own the pointer it is managing because the use case in Mapbox GL is to keep a pointer to a stack allocated object, like: ``` MyObject foo; threadLocal.set(&foo); ``` To keep consistency, it is required that we clear the managed object before ThreadLocal gets destroyed by setting it to `nullptr`.
* [core] GCC 4.9 bracket initialization issuesBruno de Oliveira Abinader2017-07-121-33/+40
|
* [test] Add utest to assert our dtoa implementation precisionThiago Marcos P. Santos2017-07-121-0/+24
|
* [core] Isolate pthread-based tls implementationThiago Marcos P. Santos2017-07-071-17/+9
|
* [test] Reuse StubGeometryTileFeature in MergeLinesBruno de Oliveira Abinader2017-07-061-34/+7
|
* [core] Move setStyleJSON/URL to Style; add Map::setStyleJohn Firebaugh2017-06-221-3/+4
|
* [core] add MBGL_CHECK_ERROR to some locations where it was missingKonstantin Käfer2017-06-211-2/+2
|
* [core] Rename ThreadedObject to ThreadThiago Marcos P. Santos2017-06-212-34/+34
| | | | | Now that the old Thread class is gone, we can give ThreadedObject a better name.
* [core] Remove util::ThreadThiago Marcos P. Santos2017-06-211-296/+0
| | | | Fixes #6425
* [tests] Port the ThreadLocalStorage test to the actor modelThiago Marcos P. Santos2017-06-211-16/+29
|
* [tests] Port the AsyncTask test to the actor modelThiago Marcos P. Santos2017-06-211-30/+29
|
* [tests] Added tests for ThreadedObjectThiago Marcos P. Santos2017-06-211-0/+277
|
* [core] Per-tile glyph/icon atlasesJohn Firebaugh2017-06-131-16/+32
|
* [core] Added Backend::{assume,set}ScissorTestBruno de Oliveira Abinader2017-06-131-0/+10
|
* [test] Lower memory ceilingJohn Firebaugh2017-05-261-1/+1
| | | | We gained a lot of overhead by reducing the initial SpriteAtlas size.
* [core] leave Image objects in a valid state after premultiply/unpremultiplyKonstantin Käfer2017-05-191-0/+4
|
* [core] Remove WorkQueueJohn Firebaugh2017-05-171-59/+0
| | | | No longer used as of 5cdf838a387cae446dba500ac49a1c5524bf7949.
* [tidy] modernize-deprecated-headersBruno de Oliveira Abinader2017-05-121-1/+1
|
* [tidy] modernize-pass-by-valueBruno de Oliveira Abinader2017-05-121-3/+4
|
* [core, android, ios, macos, qt] v10 default stylesMinh Nguyễn2017-05-111-2/+2
| | | | Upgraded from v9 default styles to v10 wherever the developer expects to get the latest and greatest, as well as in a couple tests where it may be beneficial to ensure that we can handle a two-digit version number in the style URL.
* [core, android] Factor JSON string conversionsJohn Firebaugh2017-05-081-0/+27
| | | | | | | | | | | This adds a `convertJSON` template, to be used like: Error error optional<Foo> foo = convertJSON<Foo>(string, error); Internally, it parses the string with RapidJSON and then calls `convert<Foo>(parsed, error)`. While here, rationalize GeoJSON converters and fix error handling for Tileset conversion in OfflineDownload.
* [core] Make Map.addImage tests pass (#8843)Asheem Mamoowala2017-05-021-0/+15
| | | | | Fix Node tests suite implementation to parse pixelRatio from style json Premultiply images in the node binding before sending to mbgl core
* [core] Render fill-extrusion layers (#8431)Lauren Budorick2017-04-272-2/+52
|
* [core] Move ProjectedMeters to projection.hppJohn Firebaugh2017-04-182-16/+15
|
* [core] Tighten geo.hpp ctorsBruno de Oliveira Abinader2017-04-142-5/+74
|
* [all] Make LatLng coordinates read-onlyJohn Firebaugh2017-04-062-33/+33
|
* [core] Tighten LatLng and other geo.hpp classesJohn Firebaugh2017-04-061-11/+6
| | | | | * Remove LatLng::null and enforce invariants * Remove unnecessary operator bool()