[core] Simplify RenderLayer interface.

This commit is contained in:
Mikhail Pozdnyakov
2019-04-10 15:11:48 +03:00
parent 150b427300
commit b96d824b2d
7 changed files with 12 additions and 30 deletions

View File

@@ -15,8 +15,9 @@ RenderLayer::RenderLayer(Immutable<style::LayerProperties> properties)
baseImpl(evaluatedProperties->baseImpl) {
}
void RenderLayer::setImpl(Immutable<style::Layer::Impl> impl) {
baseImpl = std::move(impl);
void RenderLayer::transition(const TransitionParameters& parameters, Immutable<style::Layer::Impl> newImpl) {
baseImpl = std::move(newImpl);
transition(parameters);
}
const std::string& RenderLayer::getID() const {
@@ -43,10 +44,6 @@ const RenderLayerSymbolInterface* RenderLayer::getSymbolInterface() const {
return nullptr;
}
void RenderLayer::update() {
// no-op
}
optional<Color> RenderLayer::getSolidBackground() const {
return nullopt;
}