#pragma once #include #include #include #include namespace mbgl { namespace gfx { class Drawable; /** Tweaker that enables drawing a CustomLayer via their CustomLayerHost */ class DrawableCustomLayerHostTweaker : public gfx::DrawableTweaker { public: DrawableCustomLayerHostTweaker(std::shared_ptr host_) : host(host_) {} ~DrawableCustomLayerHostTweaker() override = default; void init(Drawable&) override{}; void execute(Drawable&, const PaintParameters&) override; protected: std::shared_ptr host; }; } // namespace gfx } // namespace mbgl