Files
MapLibreParticleLab/include/mbgl/util/constants.hpp
Thiago Marcos P. Santos 59a45b8400 [core] Add timeout for clock skew
If the server keeps sending replies considered from the client in the
past (there is no way to tell if the server or client clock is wrong),
the client will try to interpolate a valid expiration time based
on the delta of the expiration intervals sent by the server.

If the intervals are always the same, exponential backoff kicks in
until we get a different expiration time from what we already have.
2016-02-26 03:52:02 +02:00

50 lines
1.0 KiB
C++

#ifndef MBGL_UTIL_CONSTANTS
#define MBGL_UTIL_CONSTANTS
#include <mbgl/util/chrono.hpp>
#include <cmath>
#include <string>
#include <vector>
namespace mbgl {
namespace util {
extern const float tileSize;
extern const int32_t EXTENT;
extern const double DEG2RAD;
extern const double RAD2DEG;
extern const double M2PI;
extern const double EARTH_RADIUS_M;
extern const double LATITUDE_MAX;
extern const double PITCH_MAX;
extern const double MIN_ZOOM;
extern const double MAX_ZOOM;
extern const uint64_t DEFAULT_MAX_CACHE_SIZE;
extern const Duration CLOCK_SKEW_RETRY_TIMEOUT;
} // namespace util
namespace debug {
extern const bool tileParseWarnings;
extern const bool styleParseWarnings;
extern const bool spriteWarnings;
extern const bool renderWarnings;
extern const bool renderTree;
extern const bool labelTextMissingWarning;
extern const bool missingFontStackWarning;
extern const bool missingFontFaceWarning;
extern const bool glyphWarning;
extern const bool shapingWarning;
} // namespace debug
} // namespace mbgl
#endif