summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/raster_layer.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-05-10 16:09:02 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-06-05 19:38:08 -0700
commit1cf46d93b944095726396acf84649519e2fd96ad (patch)
tree40d9e15b9862e1c234dff14151a51c3573f85e80 /src/mbgl/style/layers/raster_layer.cpp
parent591af0021bfb8b9fdfd803b55fb6c18a24c46943 (diff)
downloadqtlocation-mapboxgl-1cf46d93b944095726396acf84649519e2fd96ad.tar.gz
[core] Simplify LayerObserver API
Diffstat (limited to 'src/mbgl/style/layers/raster_layer.cpp')
-rw-r--r--src/mbgl/style/layers/raster_layer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mbgl/style/layers/raster_layer.cpp b/src/mbgl/style/layers/raster_layer.cpp
index a7a32768b6..a9a8d273fa 100644
--- a/src/mbgl/style/layers/raster_layer.cpp
+++ b/src/mbgl/style/layers/raster_layer.cpp
@@ -50,7 +50,7 @@ void RasterLayer::setVisibility(VisibilityType value) {
auto impl_ = mutableImpl();
impl_->visibility = value;
baseImpl = std::move(impl_);
- observer->onLayerVisibilityChanged(*this);
+ observer->onLayerChanged(*this);
}
// Zoom range
@@ -86,7 +86,7 @@ void RasterLayer::setRasterOpacity(PropertyValue<float> value) {
auto impl_ = mutableImpl();
impl_->paint.template get<RasterOpacity>().value = value;
baseImpl = std::move(impl_);
- observer->onLayerPaintPropertyChanged(*this);
+ observer->onLayerChanged(*this);
}
void RasterLayer::setRasterOpacityTransition(const TransitionOptions& options) {
@@ -113,7 +113,7 @@ void RasterLayer::setRasterHueRotate(PropertyValue<float> value) {
auto impl_ = mutableImpl();
impl_->paint.template get<RasterHueRotate>().value = value;
baseImpl = std::move(impl_);
- observer->onLayerPaintPropertyChanged(*this);
+ observer->onLayerChanged(*this);
}
void RasterLayer::setRasterHueRotateTransition(const TransitionOptions& options) {
@@ -140,7 +140,7 @@ void RasterLayer::setRasterBrightnessMin(PropertyValue<float> value) {
auto impl_ = mutableImpl();
impl_->paint.template get<RasterBrightnessMin>().value = value;
baseImpl = std::move(impl_);
- observer->onLayerPaintPropertyChanged(*this);
+ observer->onLayerChanged(*this);
}
void RasterLayer::setRasterBrightnessMinTransition(const TransitionOptions& options) {
@@ -167,7 +167,7 @@ void RasterLayer::setRasterBrightnessMax(PropertyValue<float> value) {
auto impl_ = mutableImpl();
impl_->paint.template get<RasterBrightnessMax>().value = value;
baseImpl = std::move(impl_);
- observer->onLayerPaintPropertyChanged(*this);
+ observer->onLayerChanged(*this);
}
void RasterLayer::setRasterBrightnessMaxTransition(const TransitionOptions& options) {
@@ -194,7 +194,7 @@ void RasterLayer::setRasterSaturation(PropertyValue<float> value) {
auto impl_ = mutableImpl();
impl_->paint.template get<RasterSaturation>().value = value;
baseImpl = std::move(impl_);
- observer->onLayerPaintPropertyChanged(*this);
+ observer->onLayerChanged(*this);
}
void RasterLayer::setRasterSaturationTransition(const TransitionOptions& options) {
@@ -221,7 +221,7 @@ void RasterLayer::setRasterContrast(PropertyValue<float> value) {
auto impl_ = mutableImpl();
impl_->paint.template get<RasterContrast>().value = value;
baseImpl = std::move(impl_);
- observer->onLayerPaintPropertyChanged(*this);
+ observer->onLayerChanged(*this);
}
void RasterLayer::setRasterContrastTransition(const TransitionOptions& options) {
@@ -248,7 +248,7 @@ void RasterLayer::setRasterFadeDuration(PropertyValue<float> value) {
auto impl_ = mutableImpl();
impl_->paint.template get<RasterFadeDuration>().value = value;
baseImpl = std::move(impl_);
- observer->onLayerPaintPropertyChanged(*this);
+ observer->onLayerChanged(*this);
}
void RasterLayer::setRasterFadeDurationTransition(const TransitionOptions& options) {