summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add fuzz tests for TileCover and fix out of bounds access crash.Asheem Mamoowala2018-07-161-0/+2
|
* Better describe the streaming tilecover algorithm in commentsAsheem Mamoowala2018-07-162-22/+57
|
* Fix TileCover asserts. The create_bounds_towards_* methods were treatingAsheem Mamoowala2018-07-161-49/+19
| | | | | all point arrays as rings. Simplify the logic to only compare against the next pt in the bound.
* [core] treat parsedate as C++ file to remove C build rulesKonstantin Käfer2018-07-163-3/+3
| | | | It is already wrapped with #ifdef __cplusplus extern "C", so we can safely compile it as C++ but retain C linkage
* [core] Convert legacy functions directly to expressionsJohn Firebaugh2018-07-135-170/+708
|
* [core] Simplify Value conversionsJohn Firebaugh2018-07-121-66/+19
| | | | | | Use a single template function for each of {to,from}ExpressionValue, always dispatching to ValueConverter. Remove unused ValueConverter::ExpressionType typedefs.
* [core] Comparison expressions can have 4th memberMinh Nguyễn2018-07-091-1/+1
| | | | When detecting an expression used as a filter, relax the check for expressions to allow comparison expressions to contain a fourth member for the collator.
* [core] Only update collision debug data if debug mode is onChris Loer2018-07-051-15/+27
| | | | Fixes issue #12294: unused debug vertices would pile up in buckets over course of tile's lifetime.
* Rename `HeatmapColorPropertyValue` to `ColorRampPropertyValue`Mikhail Pozdnyakov2018-07-057-16/+21
| | | | | | | | Based on patch from @lbud (Lauren Budorick). Give `HeatmapColorPropertyValue` a more generic name, since the same value type will be used for both `heatmap-color` and `line-gradient` properties.
* [core] Fix sort order for queryRenderedFeatures when features are filtered.Chris Loer2018-07-035-21/+21
| | | | Fixes issue #12104.
* [core] Avoid blocking in Thread<Object> constructor (#12151)Anand Thakker2018-07-036-15/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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] Introduce "collator" expressionsChris Loer2018-07-037-14/+199
| | | | Cross platform parsing and evaluation code.
* [core] Introduce LanguageTag for parsing BCP 47 tagsChris Loer2018-07-032-0/+281
|
* Add pitch argument to cameraThatFits functions (#12213)Bobby Sudekum2018-07-021-13/+24
|
* [core] Add assertions to expression constructorsJohn Firebaugh2018-06-295-7/+39
|
* [core] Remove stops-based *Function constructorsJohn Firebaugh2018-06-291-0/+40
|
* [darwin] Replace use of *Stops with expressions DSLJohn Firebaugh2018-06-291-0/+27
|
* [core] Replace use of *Stops with expressions DSLJohn Firebaugh2018-06-293-92/+208
|
* [core] A filter expression that errors should be treated as false, not trueJohn Firebaugh2018-06-291-1/+1
|
* [core] fix crash when trying to parse legacy filtersKonstantin Käfer2018-06-291-0/+5
| | | | Legacy filters aren't part of the style specification, but you can generate them by parsing a legacy filter in a stylesheet, and obtaining the parsed Filter and serializing it.
* [core] InterpolateBase → Interpolate; Interpolate → InterpolateImplJohn Firebaugh2018-06-283-16/+16
|
* [core] Privatize Interpolate<T>John Firebaugh2018-06-281-7/+88
|
* [core] Move non-polymorphic Interpolate methods to baseJohn Firebaugh2018-06-281-2/+1
|
* [core] Split Interpolator into a separate fileJohn Firebaugh2018-06-281-3/+0
|
* [core] Simplify parseInterpolateJohn Firebaugh2018-06-271-38/+14
| | | | | * Merge type checking into match arms * No need to use interpolator->match(...)
* [core] Fix GCC8's new -Wcatch-value warningsZsolt Bölöny2018-06-251-1/+1
| | | Polymorphic types shouldn't be caught by value, as the warning message says. Catch them by constant reference instead.
* [core] add raster-resampling property (#12176)upstream/rcleeMolly Lloyd2018-06-216-4/+49
| | | | | | | | | | * update style-code for raster-resampling * implement user-defined raster-resampling * invert filter condition * raster-resampling -> raster-resampling-mode for darwin language conventions
* [core] Measuring tiles requesting/parsing time using logging (#12152)Lloyd Sheng2018-06-213-0/+29
| | | | | | | | | | | | * Tile timing * Refactor logging code * Keep the scope of `messageStream` constrained * Make log message more clear * Fix crash issue if onlineResponse.data is null
* [ios] Added check for `-Wtautological-constant-compare` prior to ignore. ↵Julian Rex2018-06-191-0/+2
| | | | (#12177)
* [core] port zero line-width fix from gl-js (#12175)Molly Lloyd2018-06-193-3/+3
| | | | | | | | * port zero line-width fix from gl-js * ignore transition test * ignore feature-state tests
* [core] Use a getter for the BackendScope static variableThiago Marcos P. Santos2018-06-131-7/+15
| | | | | Fix a static variable initialization issue when dynamic loading Mapbox GL Native.
* [core] allow logging error codes and formatting strings at the same timeKonstantin Käfer2018-06-121-2/+8
|
* [test] standardize on database file name and move I/O functions to utilKonstantin Käfer2018-06-122-4/+21
|
* [core] fix undefined behavior in LineAtlas::addDashKonstantin Käfer2018-06-121-0/+7
|
* [core] always commit placement to fix #11795Ansis Brammanis2018-06-073-20/+14
| | | | | | | | Since placements will be committed even if they do not need the full fade duration to fade features in, we need the new `fadeStartTime` to keep track of how long we still need to fade. This is important because if we fade too long we will trigger another placement and never stop rendering.
* [core] Fix crash due to mixing legacy filters and expressions (#12065)Anand Thakker2018-06-061-33/+51
| | | | | | | | | | | | | | | | | | | * Fix crash due to mixing legacy filters and expressions In some cases, (invalid) nested filters that used a mix of legacy filter syntax and expression syntax caused a crash due to a failure to propagate parsing errors from deeper within the filter expression. These errors went undetected in part because these conversion functions returned unique_ptr<Expression> values (or vectors thereof), using {nullptr} to represent a parsing error, but the core expression classes expect unique_ptr<Expression> that are never null. This changes over to using expression::ParseResult (aka optional<unique_ptr<Expression>>), to represent conversion failure the same way we do in the rest of the expression system. * Fix clang 3.8 / gcc 4.9 issue
* [core] fix bogus unused variable with GCC 7Konstantin Käfer2018-06-041-3/+3
|
* [core] don't use floating point versions of pow/logKonstantin Käfer2018-06-0410-14/+16
| | | | | | GLIBC 2.27 added new versioned symbols of powf and logf, while the double versions of pow and log remained stable. Prefer the double version to avoid introducing a dependency on a newer version of GLIBC than strictly necessary. See https://lists.gnu.org/archive/html/info-gnu/2018-02/msg00000.html
* Set Tile loaded/rendered instead of marking tile as optional.Asheem Mamoowala2018-05-241-3/+3
|
* [core] wrap glGetString in `MBGL_CHECK_ERROR` tooKonstantin Käfer2018-05-241-2/+2
|
* [core] re-assign ids when lng jumps to avoid flickerAnsis Brammanis2018-05-224-2/+46
|
* [core] avoid symbol flickering when longitude is wrappedAnsis Brammanis2018-05-223-3/+34
|
* [android] - remove mips and armeabi as supported ABIsTobrun2018-05-221-0/+1
| | | | | | | | | | [android] - bump CI image to NDK 17 compatible [core] - remove setting edgeDistance to 0, comparison 'const short' > 32767 is always false [android] - remove throwing in desructor, undefined behaviour [android] - bump dependency versions of project
* [core] Use std::ios::binary format in std::ifstreamBruno de Oliveira Abinader2018-05-221-2/+2
|
* [core] fix hang when parsing very large angles for hue in hsl colorsKonstantin Käfer2018-05-221-3/+3
|
* Clamp TileJSON.bounds latitudes to [-90, 90] (#11964)Asheem Mamoowala2018-05-211-8/+9
| | | Fixes #11963.
* [ios,macos] Fix for infinite loop crash when setting shape to nil in ↵Julian Rex2018-05-212-10/+49
| | | | MGLMapViewDelegate methods (#11614)
* [core] Align URL token replacement behavior with GL JSJohn Firebaugh2018-05-183-7/+17
| | | | I.e. preserve unknown tokens in URLs rather than replacing them with an empty string.
* [core] Align match behavior with case/==John Firebaugh2018-05-181-2/+16
| | | | Makes `["match", ["get", k], label, match, otherwise]` equivalent to `["case", ["==", ["get", k], label], match, otherwise]`. This changes the behavior of match expressions where the runtime type of the input does not match the type of the labels: previously such expressions produced a runtime type error and then fell back to the property default value; now they produce the fallback value from the match expression.
* Merge branch 'release-boba' into masterupstream/fabian-merge-release-4.0.1-masterFabian Guerra2018-05-1735-882/+990
|\ | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # mapbox-gl-js # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/gradle.properties # platform/android/gradle/dependencies.gradle # platform/darwin/src/MGLVectorTileSource.mm # platform/darwin/src/MGLVectorTileSource_Private.h # platform/ios/CHANGELOG.md # src/mbgl/style/expression/compound_expression.cpp