Custom drawable layer v2 (#1754)

This commit is contained in:
Stefan Karschti
2023-10-26 21:36:50 +03:00
committed by GitHub
parent 619408d09d
commit 40e283cdbb
26 changed files with 672 additions and 227 deletions

View File

@@ -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