summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [tidy] modernize-use-usingBruno de Oliveira Abinader2017-05-1210-34/+63
|
* [tidy] modernize-use-autoBruno de Oliveira Abinader2017-05-1214-23/+23
|
* [tidy] llvm-namespace-commentBruno de Oliveira Abinader2017-05-1210-10/+10
|
* [core] Removed unused namedColorCountBruno de Oliveira Abinader2017-05-121-3/+0
| | | | warning: unused variable 'namedColorCount' [clang-diagnostic-unused-const-variable]
* [core] Make deleted members publicBruno de Oliveira Abinader2017-05-121-5/+5
| | | | warning: deleted member function should be public [modernize-use-equals-delete]
* [core] Explicitly use mbgl::optional in IdentityStops::evaluateBruno de Oliveira Abinader2017-05-121-2/+3
| | | | | | error: call to constructor of 'optional<std::array<float, 2> >' (aka 'std::experimental::fundamentals_v1::optional<std::array<float, 2> >') is ambiguous [clang-diagnostic-error]
* [core] Avoid calling virtual GeometryTile::cancel() on dtorBruno de Oliveira Abinader2017-05-122-1/+7
| | | | | warning: Call to virtual function during destruction will not dispatch to derived class [clang-analyzer-optin.cplusplus.VirtualCall]
* [core] When a layer is added, reload its source's tilesJohn Firebaugh2017-05-111-15/+16
|
* [core] Remove StyleSourcedAnnotation supportJohn Firebaugh2017-05-106-94/+0
| | | | The functionality this provided has been subsumed by the runtime styling API.
* [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
|