summaryrefslogtreecommitdiff
path: root/src/mbgl/style/style_update_parameters.hpp
blob: 73ed500e8e94f3cc3e84295be1d62cdb58253a1f (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#pragma once

#include <mbgl/map/mode.hpp>

namespace mbgl {

class TransformState;
class Worker;
class FileSource;
class Style;
namespace gl { class TexturePool; }
class AnnotationManager;

class StyleUpdateParameters {
public:
    StyleUpdateParameters(float pixelRatio_,
                          MapDebugOptions debugOptions_,
                          TimePoint animationTime_,
                          const TransformState& transformState_,
                          Worker& worker_,
                          FileSource& fileSource_,
                          gl::TexturePool& texturePool_,
                          bool shouldReparsePartialTiles_,
                          const MapMode mode_,
                          AnnotationManager& annotationManager_,
                          Style& style_)
        : pixelRatio(pixelRatio_),
          debugOptions(debugOptions_),
          animationTime(animationTime_),
          transformState(transformState_),
          worker(worker_),
          fileSource(fileSource_),
          texturePool(texturePool_),
          shouldReparsePartialTiles(shouldReparsePartialTiles_),
          mode(mode_),
          annotationManager(annotationManager_),
          style(style_) {}

    float pixelRatio;
    MapDebugOptions debugOptions;
    TimePoint animationTime;
    const TransformState& transformState;
    Worker& worker;
    FileSource& fileSource;
    gl::TexturePool& texturePool;
    bool shouldReparsePartialTiles;
    const MapMode mode;
    AnnotationManager& annotationManager;

    // TODO: remove
    Style& style;
};

}