summaryrefslogtreecommitdiff
path: root/src/mbgl/style/style.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Move setStyleJSON/URL to Style; add Map::setStyleJohn Firebaugh2017-06-221-0/+16
|
* [all] Promote Style to public APIJohn Firebaugh2017-06-221-243/+64
|
* [core] Refactor CustomLayer internalsJohn Firebaugh2017-06-221-18/+1
| | | | Move the responsibility for initialization/deinitialization/rendering to RenderCustomLayer. This eliminates special case code from Map and Style.
* [core] Trigger repaint on source changesAsheem Mamoowala2017-06-191-0/+1
|
* [core] Obey "transition" property from style and its default valueJohn Firebaugh2017-06-151-0/+1
|
* [core] Per-bucket icon atlasesJohn Firebaugh2017-06-131-8/+1
|
* [core] Collection-level immutabilityJohn Firebaugh2017-06-051-90/+40
| | | | Introduce a second level of immutability, over each of the collections held by a style: sources, images, and layers. Tracking immutability at this level allows us to short-circuit significant portions of the RenderStyle update logic via a simple equality check, greatly improving performance.
* [core] Split RenderStyle from StyleJohn Firebaugh2017-06-051-454/+29
|
* [core] Simplify LayerObserver APIJohn Firebaugh2017-06-051-17/+1
|
* [core] Refactor RenderSource updatesJohn Firebaugh2017-06-051-79/+56
| | | | | | | * Eliminate updateBatch in favor of diffing layers and detecting changes to properties upon which layout depends. * Replace RenderSource::{update,remove,invalidate,reload}Tiles with a single update method * Replace TilePyramid::{update,remove,invalidate,reload}Tiles with a single update method * Remove Style& dependency TODO from GeometryTile and TileParameters
* [core] Thread Style parameter through queryRenderedFeaturesJohn Firebaugh2017-06-051-2/+2
|
* [core] Replace inline SpriteAtlas updates with diffingJohn Firebaugh2017-05-301-7/+34
|
* [core] check source usage before removeIvo van Dongen2017-05-301-0/+23
|
* Revert "[core] Factor timePoint initialization"Bruno de Oliveira Abinader2017-05-301-2/+2
| | | | This reverts commit 3790caafa3c98706c5cf0618c8aec592b2780bba.
* Refactor RenderLayer and RenderSource to be more friendly for Non-tiled ↵Asheem Mamoowala2017-05-261-8/+8
| | | | sources (#9058)
* [core] Don't use a separate SpriteAtlas for annotation imagesJohn Firebaugh2017-05-261-13/+15
| | | | Instead, just add them to the Style as needed. Includes changes from #8905 and takes care to avoid regressing #3817.
* [core] Auto-growable SpriteAtlas using shelf-packJohn Firebaugh2017-05-261-1/+1
|
* [core, node, darwin, android, qt] Make image ID part of ImageJohn Firebaugh2017-05-161-15/+7
| | | | More like Source and Layer.
* [core, node, darwin, qt] Remove support for paint classesJohn Firebaugh2017-05-151-39/+2
|
* [core] cascade ⇢ transition / cascading ⇢ transitionableJohn Firebaugh2017-05-151-4/+4
|
* [core] Unify {Paint,Layout,Light}PropertiesJohn Firebaugh2017-05-151-1/+1
|
* [core] Immutable<Impl> for ImageJohn Firebaugh2017-05-151-2/+3
|
* [core] Trim StyleObserver interfaceJohn Firebaugh2017-05-131-7/+0
| | | | It doesn't need to inherit from SpriteLoaderObserver and GlyphAtlasObserver.
* [core] Move renderer/* files into sub-folders (#8983)Asheem Mamoowala2017-05-121-8/+8
| | | Move renderer/* files into sub-folders
* [core] Split style image collection from SpriteAtlasIvo van Dongen2017-05-121-4/+37
|
* [core] Replace createRender{Source,Layer} with Render{Source,Layer}::createJohn Firebaugh2017-05-121-2/+2
| | | | | * Eliminates the need for EnableImmutableFromThis * Eliminates the dependency of {Source,Layer}::Impl on corresponding Render class (circular dependency)
* [core] Immutable ImplsJohn Firebaugh2017-05-121-128/+149
|
* [tidy] modernize-loop-convertBruno de Oliveira Abinader2017-05-121-2/+2
|
* [tidy] modernize-use-autoBruno de Oliveira Abinader2017-05-121-3/+3
|
* [core] When a layer is added, reload its source's tilesJohn Firebaugh2017-05-111-15/+16
|
* [core] delegate light changes to render lightIvo van Dongen2017-05-081-2/+14
|
* [core] render lightIvo van Dongen2017-05-081-5/+19
|
* [core] Reset observers of removed Sources and LayersJohn Firebaugh2017-05-051-0/+2
| | | | This ensures that the observer is not an invalid reference if the removed Source/Layer is retained, but the Style is deallocated.
* [core] Reduce use of RecalculateStyleJohn Firebaugh2017-05-051-5/+8
| | | | | | | * 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] Omnibus Style::update methodJohn Firebaugh2017-05-041-60/+52
| | | | 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-041-2/+2
|
* [core] Factor timePoint initializationJohn Firebaugh2017-05-031-2/+2
|
* [core] Calculate hasPendingTransitions functionally rather than statefullyJohn Firebaugh2017-05-031-3/+12
|
* [core] Move render-related sources out of style directory/namespaceJohn Firebaugh2017-05-031-3/+3
| | | | | | | | | | | | | | | | 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] Refactor Source::*Impls into RenderSources and TilePyramidJohn Firebaugh2017-05-021-51/+76
|
* [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.
* [core] Render fill-extrusion layers (#8431)Lauren Budorick2017-04-271-6/+16
|
* [core] Tweak handling of annotation special case SpriteAtlasJohn Firebaugh2017-04-261-6/+0
| | | | | * 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-251-19/+70
|
* [core] Move Sprite parsing to thread poolKonstantin Käfer2017-04-241-3/+4
|
* [core] account for property functions in query rendered featuresIvo van Dongen2017-04-191-12/+0
|
* [core] Invalidate cached tiles of disabled sources on relayoutJohn Firebaugh2017-04-071-0/+2
|
* [core] De-mutex GlyphAtlas and SpriteAtlasChris Loer2017-04-041-8/+0
| | | | | | | | | | | | - Expose glyph and icon information to workers via message interface. - Glyph/SpriteAtlas track which tiles have outstanding requests and send messages to them when glyphs/icons become available. - Remove obsolete "updateSymbolDependentTiles" pathway - Symbol preparation for a tile now depends on all glyphs becoming available before it can start. - Start tracking individual icons needed for a tile, although we don't do anything with the information yet. - Introduce typedef for GlyphID
* Merge branch 'release-ios-v3.5.0-android-v5.0.0'John Firebaugh2017-03-211-3/+1
|\
| * [core] fixes #8433: don't skip style recalculations for fade-from-zero ↵Justin R. Miller2017-03-161-3/+1
| | | | | | | | transitions (#8440)