summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/fill_layer_impl.cpp
blob: ad994a06b6008e7da6f5891804c243d6b37b37b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <mbgl/style/layers/fill_layer_impl.hpp>

namespace mbgl {
namespace style {

bool FillLayer::Impl::hasLayoutDifference(const Layer::Impl& other) const {
    assert(other.getTypeInfo() == getTypeInfo());
    const auto& impl = static_cast<const style::FillLayer::Impl&>(other);
    return filter != impl.filter || visibility != impl.visibility || layout != impl.layout ||
           paint.get<FillPattern>().value != impl.paint.get<FillPattern>().value ||
           paint.hasDataDrivenPropertyDifference(impl.paint);
}

} // namespace style
} // namespace mbgl