blob: 31e524bc818480983f85b5f69c348cf968ea4f13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <mbgl/layer/background_layer.hpp>
namespace mbgl {
void BackgroundLayer::recalculate(const StyleCalculationParameters& parameters) {
paints.removeExpiredTransitions(parameters.now);
paints.calculateTransitioned(PropertyKey::BackgroundOpacity, properties.opacity, parameters);
paints.calculateTransitioned(PropertyKey::BackgroundColor, properties.color, parameters);
paints.calculate(PropertyKey::BackgroundImage, properties.image, parameters);
passes = properties.isVisible() ? RenderPass::Translucent : RenderPass::None;
}
}
|