summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/render_source_observer.hpp
blob: 792a18db2b189d432abd545b4557a53106c137ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <exception>

namespace mbgl {

class RenderSource;
class OverscaledTileID;

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

    virtual void onTileChanged(RenderSource&, const OverscaledTileID&) {}
    virtual void onTileError(RenderSource&, const OverscaledTileID&, std::exception_ptr) {}
};

} // namespace mbgl