summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/custom_layer_impl.hpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] custom layer - add contextLost callbackIvo van Dongen2017-09-221-0/+2
| | | | - optional callback method that can be used to do cleanup when the context has been lost before re-initialisation
* [core] Refactor CustomLayer internalsJohn Firebaugh2017-06-221-5/+0
| | | | Move the responsibility for initialization/deinitialization/rendering to RenderCustomLayer. This eliminates special case code from Map and Style.
* [core] Refactor RenderSource updatesJohn Firebaugh2017-06-051-0/+1
| | | | | | | * 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] Replace createRender{Source,Layer} with Render{Source,Layer}::createJohn Firebaugh2017-05-121-2/+0
| | | | | * Eliminates the need for EnableImmutableFromThis * Eliminates the dependency of {Source,Layer}::Impl on corresponding Render class (circular dependency)
* [core] Immutable ImplsJohn Firebaugh2017-05-121-7/+2
|
* [core] split off render layersIvo van Dongen2017-04-251-4/+1
|
* [core] Add support for data-driven stylingJohn Firebaugh2017-02-021-1/+1
|
* [core] Get rid of user-specified refsJohn Firebaugh2017-01-041-0/+1
|
* [core] Convert BucketParameters#layer to a separate parameterJohn Firebaugh2016-12-211-1/+1
| | | | This parameter varies between Buckets, while the others are constant. It makes more sense as an individual parameter.
* [core] Convert style properties to a tuple-based approachJohn Firebaugh2016-11-171-1/+1
| | | | | | | | This converts the style property classes (CirclePaintProperties and so on) to the same tuple-based approach as gl::Attribute and gl::Uniform. The approach is outlined in https://github.com/mapbox/cpp/blob/master/C%2B%2B%20Structural%20Metaprogramming.md. The main advantage of this approach is it allows writing algorithms that work on sets of style properties, without resorting to code generation or manually repetitive code. This lets us iterate on approaches to data-driven properties more easily. Another advantage is that the cascading, unevaluated, and evaluated states of a set of properties exist as independent structures, instead of individual properties holding their own state. This is a more functional approach that makes data flow clearer and reduces state.
* [core] Return source and layer ownership (#7014)Jesse Bounds2016-11-111-0/+1
| | | | | | | | When a source or layer is removed transfer ownership back to the caller so it can (optionally) take it. Preserve the behavior that removing a CustomLayer triggers deinitialization. Deinitialize all custom layers when a style is destroyed in case those layers are not explicitly removed.
* [core, node] Implement bindings for addLayerJohn Firebaugh2016-06-241-3/+1
|
* [core] Rationalize naming for style-related codeJohn Firebaugh2016-06-021-0/+44