summaryrefslogtreecommitdiff
path: root/src/mbgl/sprite/sprite_loader_observer.hpp
blob: f72f67cbbba83d78cdbefba88727888d641f4d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include <mbgl/style/image.hpp>
#include <mbgl/util/immutable.hpp>

#include <exception>
#include <vector>

namespace mbgl {

namespace style {
class Image;
} // namespace style

class SpriteLoaderObserver {
public:
    virtual ~SpriteLoaderObserver() = default;

    // NOLINTNEXTLINE(performance-unnecessary-value-param)
    virtual void onSpriteLoaded(std::vector<Immutable<style::Image::Impl>>) {}

    virtual void onSpriteError(std::exception_ptr) {}
};

} // namespace mbgl