summaryrefslogtreecommitdiff
path: root/src/mbgl/storage/resource_transform.cpp
blob: eaf10c93fdde0012d8a8aa519294ff8a93b8a2e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <mbgl/storage/resource_transform.hpp>

namespace mbgl {

ResourceTransform::ResourceTransform(TransformCallback callback) : transformCallback(std::move(callback)) {}

void ResourceTransform::transform(Resource::Kind kind, const std::string& url, FinishedCallback finished) {
    assert(finished);
    assert(transformCallback);
    transformCallback(kind, url, std::move(finished));
}

} // namespace mbgl