Custom drawable layer v2 (#1754)
This commit is contained in:
@@ -52,10 +52,6 @@ bool RenderCustomDrawableLayer::hasCrossfade() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
void RenderCustomDrawableLayer::markContextDestroyed() {
|
||||
contextDestroyed = true;
|
||||
}
|
||||
|
||||
void RenderCustomDrawableLayer::prepare(const LayerPrepareParameters&) {}
|
||||
|
||||
#if MLN_LEGACY_RENDERER
|
||||
@@ -84,9 +80,12 @@ void RenderCustomDrawableLayer::update(gfx::ShaderRegistry& shaders,
|
||||
|
||||
// delegate the call to the custom layer
|
||||
if (host) {
|
||||
host->update(*this, shaders, context, state, updateParameters, renderTree, changes);
|
||||
CustomDrawableLayerHost::Interface interface(
|
||||
*this, layerGroup, shaders, context, state, updateParameters, renderTree, changes);
|
||||
host->update(interface);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
Reference in New Issue
Block a user