blob: 37b85921724078ddd580fec1fa47d34484fb50cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
#include <mbgl/renderer/render_layer.hpp>
#include <mbgl/style/layers/custom_layer_impl.hpp>
namespace mbgl {
class RenderCustomLayer: public RenderLayer {
public:
RenderCustomLayer(Immutable<style::CustomLayer::Impl>);
~RenderCustomLayer() final;
void transition(const TransitionParameters&) final {}
void evaluate(const PropertyEvaluationParameters&) override;
bool hasTransition() const override;
bool hasCrossfade() const override;
void markContextDestroyed() final;
void render(PaintParameters&, RenderSource*) final;
const style::CustomLayer::Impl& impl() const;
private:
bool contextDestroyed = false;
std::shared_ptr<style::CustomLayerHost> host;
};
} // namespace mbgl
|