summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [core, android] Factor JSON string conversionsJohn Firebaugh2017-05-087-98/+66
| | | | | | | | | | | 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] delegate light changes to render lightIvo van Dongen2017-05-0810-59/+138
|
* [core] generated accessor methods on lightIvo van Dongen2017-05-085-3/+209
|
* [core] render lightIvo van Dongen2017-05-086-12/+72
|
* [core] Reuse fill-extrusion textures between frames (#8896)Lauren Budorick2017-05-084-34/+43
|
* [core] Reset observers of removed Sources and LayersJohn Firebaugh2017-05-053-2/+4
| | | | This ensures that the observer is not an invalid reference if the removed Source/Layer is retained, but the Style is deallocated.
* [core] Remove unused declarationJohn Firebaugh2017-05-051-1/+0
|
* [core] Reduce use of RecalculateStyleJohn Firebaugh2017-05-055-53/+48
| | | | | | | * Don't use it to track zoom changes. Instead, Style::update can use the zoom history to check for a change in zoom from the previous frame. * Don't use it to track active property transitions. Style already knows which layers/light have an active transition, and can re-evaluate only those that do. This leaves layer property changes as the only use of RecalculateStyle.
* [core] Throw exceptions by valueKonstantin Käfer2017-05-051-2/+2
|
* [core] Omnibus Style::update methodJohn Firebaugh2017-05-047-101/+100
| | | | Combine Style::cascade, recalculate, relayout, and updateTiles into a single method. This allows multiple loops over sources and layers to be consolidated and prepares for additional Style-Map decoupling: rather than tracking pending updates via a set of Update flags held by the Map and passed to the Style, the Style can use its own data to determine what to update.
* [core] UpdateParameters ⇢ TileParametersJohn Firebaugh2017-05-0427-60/+60
|
* [core] Factor timePoint initializationJohn Firebaugh2017-05-032-3/+5
|
* [core] Calculate hasPendingTransitions functionally rather than statefullyJohn Firebaugh2017-05-0319-23/+58
|
* [core] Move render-related sources out of style directory/namespaceJohn Firebaugh2017-05-0360-188/+137
| | | | | | | | | | | | | | | | Moves the following to the renderer directory and out of the style namespace: * CascadeParameters * PropertyEvaluationParameters * UpdateParameters * PropertyEvaluator * DataDrivenPropertyEvaluator * CrossFadedPropertyEvaluator * PaintPropertyBinder * PaintProperyStatistics * PossiblyEvaluatedPropertyValue * TransitioningLight * EvaluatedLight
* [core] No need to Update::Classes after removing a layerJohn Firebaugh2017-05-031-1/+1
|
* [core] No need to manually set Update::Classes flag after annotation updateJohn Firebaugh2017-05-031-1/+0
| | | | Since the advent of the runtime styling APIs, the APIs used by AnnotationManager::updateStyle will automatically set this flag as needed.
* [core] Remove forced style cascadeJohn Firebaugh2017-05-031-3/+0
| | | | This should happen automatically during rendering. After removing, I can no longer replicate the original issue (#1889).
* Revert "[node] Temporary: exit(0) on exception in Painter::render"John Firebaugh2017-05-021-10/+4
| | | | This reverts commit f0d4411871d43012dc9e24a376ebc70ec6ca9224.
* [core] Make Map.addImage tests pass (#8843)Asheem Mamoowala2017-05-021-12/+0
| | | | | Fix Node tests suite implementation to parse pixelRatio from style json Premultiply images in the node binding before sending to mbgl core
* [core] Refactor Source::*Impls into RenderSources and TilePyramidJohn Firebaugh2017-05-0236-551/+1245
|
* [core] Load source TileJSON immediatelyJohn Firebaugh2017-05-021-3/+2
| | | | | | | This reverses #3095. Rationale: * We're now exposing source attributes as a public API. Making those attributes unavailable at certain times complicates that API. * We're preparing to split RenderSource out of Source. Removing this removes a point of coupling between the two.
* [all] Push querySourceFeatures back out to MapJohn Firebaugh2017-05-0210-18/+20
| | | | Once Source and RendererSource are split, Source will no longer have access to tiles.
* [core] Suppress "stencil mask overflow" warningThiago Marcos P. Santos2017-05-021-1/+6
| | | | | When it starts, we get a log warning for every frame, which is expensive. Now we get only one warning.
* [core] Render fill-extrusion layers (#8431)Lauren Budorick2017-04-2752-235/+1346
|
* [core] Tweak handling of annotation special case SpriteAtlasJohn Firebaugh2017-04-2619-98/+78
| | | | | * Simplify SymbolLayout; it never needs to care about more than one SpriteAtlas. * Move the reference from SymbolLayer::Impl to SymbolBucket. This is a prerequisite for making layer Impls immutable.
* [core] split off render layersIvo van Dongen2017-04-2587-1066/+1624
|
* [all] Rationalize style::ImageJohn Firebaugh2017-04-249-123/+107
| | | | | | | A style has a collection of images, just as it has collections of sources and layers. * Name things appropriately * Use std::unique_ptr
* [core] fix an issue with lines that have duplicate points (#8808)Vladimir Agafonkin2017-04-241-4/+13
| | | An equivalent of https://github.com/mapbox/mapbox-gl-js/pull/4634.
* [core] Move Sprite parsing to thread poolKonstantin Käfer2017-04-2410-54/+109
|
* [core] More complete fix for composite function interpolation edge caseJohn Firebaugh2017-04-201-1/+3
| | | | b5b4549 / #8613 handled the edge case for layout properties, but not paint properties. Move the check for a degenerate range to interpolationFactor in order to handle both correctly.
* [core] remove unused leftover filesKonstantin Käfer2017-04-203-52/+1
|
* [core] Render parent raster tiles when ideal tile can't be loadedKonstantin Käfer2017-04-204-35/+47
|
* [core] account for property functions in query rendered featuresIvo van Dongen2017-04-1920-79/+194
|
* [core] make Tile::getBucket constIvo van Dongen2017-04-195-5/+5
|
* [core] property function statistics collectionIvo van Dongen2017-04-192-1/+44
|
* [core] Remove unnecessary Source::Impl::enabled assignmentJohn Firebaugh2017-04-181-3/+1
| | | | This flag will get set automatically by Style::recalculate.
* [core] Remove non-Map-dependent projection methods from MapJohn Firebaugh2017-04-181-13/+0
|
* [core] Combine two GlyphID-keyed maps in GlyphAtlas::EntryJohn Firebaugh2017-04-142-54/+39
|
* [core] Replace GlyphRangeSet in onGlyphsAvailable with optionals in the mapJohn Firebaugh2017-04-149-75/+42
| | | | GlyphRangeSet isn't keyed by FontStack, so using it to indicate that a particular range was loaded could have produced false positives.
* [core] Ignore shortest path in Map::pixelForLatLngBruno de Oliveira Abinader2017-04-142-8/+8
|
* [core] Safeguard PositionedIcon usage via optionalBruno de Oliveira Abinader2017-04-149-47/+61
|
* [core] Tighten geo.hpp ctorsBruno de Oliveira Abinader2017-04-143-10/+10
|
* [core] TransitionOptions s/operator bool/isDefined/Bruno de Oliveira Abinader2017-04-141-1/+1
|
* [all] Remove redundant scale-related camera methodsJohn Firebaugh2017-04-135-80/+13
| | | | We don't need to have two different measurement systems for map zoom.
* [tests] Rewrite GlyphAtlas tests to use public APIJohn Firebaugh2017-04-132-32/+2
|
* [core] Inline GlyphSet into GlyphAtlasJohn Firebaugh2017-04-124-90/+68
|
* Merge branch 'release-ios-v3.5.0-android-v5.0.0' into ↵Fabian Guerra2017-04-112-0/+51
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | boundsj-merge-release-branch # Conflicts: # cmake/core-files.cmake # mapbox-gl-js # platform/android/CHANGELOG.md # platform/ios/CHANGELOG.md # platform/macos/CHANGELOG.md # platform/qt/bitrise-qt5.yml # src/mbgl/gl/attribute.hpp # src/mbgl/gl/context.cpp # src/mbgl/gl/program.hpp # src/mbgl/map/map.cpp # src/mbgl/programs/program.hpp # src/mbgl/renderer/painter.cpp
| * [core] cache binary shaders on AndroidKonstantin Käfer2017-04-0321-32/+443
| |
| * [core] Extract and de-templatize several Program static methodsJohn Firebaugh2017-04-033-27/+52
| |
| * [core] check null data in query source features (#8553)John Firebaugh2017-03-281-0/+5
| | | | | | | | | | | | * [core] check null data in query source features * Include what you use