summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [core] Trigger repaint on source changesJohn Firebaugh2017-06-192-0/+3
|
* [core] Fix composite function approximation for non-integer stopsJohn Firebaugh2017-06-191-5/+5
|
* [core] Don't upload the FrameHistory texture in frames where it's not changingJohn Firebaugh2017-06-141-6/+6
|
* [core] Dynamic program compilation for data-driven propertiesJohn Firebaugh2017-06-1418-68/+147
|
* [core] cleanup ProgramParametersJohn Firebaugh2017-06-146-33/+45
|
* [core] add constant DDS values as uniformsKonstantin Käfer2017-06-143-4/+23
|
* [core] add uniforms to DataDrivenPaintPropertysKonstantin Käfer2017-06-147-30/+48
|
* [core] add shader defines for enabling/disabling attributes/uniforms for DDSKonstantin Käfer2017-06-1412-32/+668
|
* [core] only bind uniforms that exist in the programKonstantin Käfer2017-06-141-1/+1
|
* [core] store vertex attribute binding to prevent duplicate bindsKonstantin Käfer2017-06-141-0/+1
| | | | | | | | | We have an "oldBinding" value that we use for checking whether the vertex attribute was already bound to the current VAO, but we never set the state. Additionally, we're also checking whether the previous state was already any binding (optional is set), and don't re-enable the vertex attribute array. Additionally, we now only disable the vertex attribute array when the previous state was in fact an array attribute. We still don't deduplicate constant glVertexAttrib* calls, but that's a little trickier.
* [core] Reduce number of varyings to 8 or lessJohn Firebaugh2017-06-145-45/+46
| | | | For #pragmas, don't generate varyings for attributes that aren't used by the fragment shader. Pack other varyings more tightly.
* Cherry picks to release branch (#9230)Tobrun2017-06-091-0/+23
| | | | | | | | | | | | * [ios][macos] test remove source in use * [android] test remove source in use * [core] check source usage before remove * [core] ensure layer::accept works with non-void return values on gcc * [android] - remove upgrade runtime exceptions (#9191)
* fix #8300 flyTo for close pointsAnsis Brammanis2017-06-061-10/+7
| | | | | | | | | | | | | | | The isClose threshold is switched from 0.000001 pixels to 1 pixel. As a backup, it checks whether r0 and r1 are finite. It might be possible to have just the threshold check or just the finiteness check, but I don't see the harm in having both. std::abs(w0 - w1) < 0.000001 is removed because it doesn't look like it's needed. All calculations should run fine even if w0 === w1. Finally, the point interpolation is tweaked so that at the end of the flying (when k === 1) it ends up at the exact end point. I didn't see any bugs related to this, but it seems like a good thing to have explicitly.
* [core] Make TransformState LatLngBounds optionalBruno de Oliveira Abinader2017-06-015-15/+22
|
* Cherry-pick arabic text to release branch v3.6.0 (#9071)Fabian Guerra Soto2017-05-237-8/+92
| | | | | | | * [core] Throttle tiles to redo symbol placement at most once every 300ms. Fixes issue #8435 and prepares for pitch-scaling changes in issue #8967. * [core] Disable letter-spacing for Arabic labels (issue #9057)
* [core] add error for non-virtual destructor deletes + add virtual dtorsKonstantin Käfer2017-05-193-3/+7
|
* [core] Make destructor virtual to avoid object splicing during destructionKonstantin Käfer2017-05-191-0/+1
|
* [core] When a layer is added, reload its source's tilesJohn Firebaugh2017-05-111-15/+16
|
* [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
|