[pre-commit.ci] pre-commit autoupdate (#2192)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
3a836b8fbb
commit
8bf3040da1
@@ -42,7 +42,7 @@ public:
|
||||
/// Makes a weak pointer to this Scheduler.
|
||||
virtual mapbox::base::WeakPtr<Scheduler> makeWeakPtr() = 0;
|
||||
/// Enqueues a function for execution on the render thread.
|
||||
virtual void runOnRenderThread(std::function<void()>&&){};
|
||||
virtual void runOnRenderThread(std::function<void()>&&) {};
|
||||
virtual void runRenderJobs() {}
|
||||
|
||||
/// Returns a closure wrapping the given one.
|
||||
|
||||
@@ -23,7 +23,7 @@ public:
|
||||
: host(host_) {}
|
||||
~DrawableCustomLayerHostTweaker() override = default;
|
||||
|
||||
void init(Drawable&) override{};
|
||||
void init(Drawable&) override {};
|
||||
|
||||
void execute(Drawable&, const PaintParameters&) override;
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
virtual bool onCanRemoveUnusedStyleImage(const std::string&) { return true; }
|
||||
// Observe this event to easily mutate or observe shaders as soon
|
||||
// as the registry becomes available.
|
||||
virtual void onRegisterShaders(gfx::ShaderRegistry&){};
|
||||
virtual void onRegisterShaders(gfx::ShaderRegistry&) {};
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
virtual void onRemoveUnusedStyleImages(const std::vector<std::string>&) {}
|
||||
|
||||
// Entry point for custom shader registration
|
||||
virtual void onRegisterShaders(gfx::ShaderRegistry&){};
|
||||
virtual void onRegisterShaders(gfx::ShaderRegistry&) {};
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -80,7 +80,7 @@ public:
|
||||
virtual void resume() {}
|
||||
|
||||
/// Generic setter method
|
||||
virtual void setProperty(const std::string&, const mapbox::base::Value&){};
|
||||
virtual void setProperty(const std::string&, const mapbox::base::Value&) {};
|
||||
/// Generic getter method
|
||||
virtual mapbox::base::Value getProperty(const std::string&) const { return {}; };
|
||||
|
||||
|
||||
@@ -362,15 +362,11 @@ Value makeValue(T&& arg) {
|
||||
template <typename T>
|
||||
StyleProperty makeStyleProperty(const PropertyValue<T>& value) {
|
||||
return value.match([](const Undefined&) -> StyleProperty { return {}; },
|
||||
[](const Color& c) -> StyleProperty {
|
||||
return {makeValue(c), StyleProperty::Kind::Expression};
|
||||
},
|
||||
[](const Color& c) -> StyleProperty { return {makeValue(c), StyleProperty::Kind::Expression}; },
|
||||
[](const PropertyExpression<T>& fn) -> StyleProperty {
|
||||
return {fn.getExpression().serialize(), StyleProperty::Kind::Expression};
|
||||
},
|
||||
[](const auto& t) -> StyleProperty {
|
||||
return {makeValue(t), StyleProperty::Kind::Constant};
|
||||
});
|
||||
[](const auto& t) -> StyleProperty { return {makeValue(t), StyleProperty::Kind::Constant}; });
|
||||
}
|
||||
|
||||
inline StyleProperty makeStyleProperty(const TransitionOptions& value) {
|
||||
|
||||
Reference in New Issue
Block a user