diff options
author | Langston Smith <langston.smith@mapbox.com> | 2017-10-10 17:04:11 -0700 |
---|---|---|
committer | Langston Smith <langston.smith@mapbox.com> | 2017-10-10 17:04:11 -0700 |
commit | a829c2de392b8f826e939f1a5061c111630f48e0 (patch) | |
tree | 7b0c7e2a033c3ad5489648568eb8f2fcbfcac74f /src/mbgl/style/layers/custom_layer.cpp | |
parent | 4d56366824b51095911dc591c664b963bc04634f (diff) | |
parent | 98a47884f06a8f165a2c15a54f82b356c8ef23d8 (diff) | |
download | qtlocation-mapboxgl-a829c2de392b8f826e939f1a5061c111630f48e0.tar.gz |
Merge branch 'master' into ls-readme-updates
Diffstat (limited to 'src/mbgl/style/layers/custom_layer.cpp')
-rw-r--r-- | src/mbgl/style/layers/custom_layer.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mbgl/style/layers/custom_layer.cpp b/src/mbgl/style/layers/custom_layer.cpp index e37382d5ef..854c771847 100644 --- a/src/mbgl/style/layers/custom_layer.cpp +++ b/src/mbgl/style/layers/custom_layer.cpp @@ -8,9 +8,18 @@ namespace style { CustomLayer::CustomLayer(const std::string& layerID, CustomLayerInitializeFunction init, CustomLayerRenderFunction render, + CustomLayerContextLostFunction contextLost, CustomLayerDeinitializeFunction deinit, void* context) - : Layer(makeMutable<Impl>(layerID, init, render, deinit, context)) { + : Layer(makeMutable<Impl>(layerID, init, render, contextLost, deinit, context)) { +} + +CustomLayer::CustomLayer(const std::string& layerID, + CustomLayerInitializeFunction init, + CustomLayerRenderFunction render, + CustomLayerDeinitializeFunction deinit, + void* context) + : Layer(makeMutable<Impl>(layerID, init, render, nullptr, deinit, context)) { } CustomLayer::~CustomLayer() = default; |