blob: c238cbb5d764f3c0d1b14171b58519e3482519dd (
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
26
27
28
29
30
31
32
33
34
35
36
37
|
#pragma once
#include <mbgl/text/glyph.hpp>
#include <mbgl/text/glyph_store.hpp>
#include <mbgl/util/atomic.hpp>
#include <mbgl/util/font_stack.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <functional>
#include <string>
#include <memory>
namespace mbgl {
class AsyncRequest;
class FileSource;
class GlyphPBF : private util::noncopyable {
public:
GlyphPBF(GlyphStore*,
const FontStack&,
const GlyphRange&,
GlyphStoreObserver*,
FileSource&);
~GlyphPBF();
bool isParsed() const {
return parsed;
}
private:
util::Atomic<bool> parsed;
std::unique_ptr<AsyncRequest> req;
GlyphStoreObserver* observer = nullptr;
};
} // namespace mbgl
|