diff options
Diffstat (limited to 'src/mbgl/map/vector_tile_data.hpp')
-rw-r--r-- | src/mbgl/map/vector_tile_data.hpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/mbgl/map/vector_tile_data.hpp b/src/mbgl/map/vector_tile_data.hpp index bb0e316c18..4157a19d92 100644 --- a/src/mbgl/map/vector_tile_data.hpp +++ b/src/mbgl/map/vector_tile_data.hpp @@ -39,44 +39,17 @@ public: void cancel() override; protected: - // We let subclasses override setState() so they - // can intercept the state change and react accordingly. - void setState(const State&); - - // Set the internal parsing state to true so we prevent - // multiple workers to parse the same tile in parallel, - // which can happen if the tile is in the "partial" state. - // It will return true if is possible to start pasing the - // tile or false if not (so some other worker is already - // parsing the tile). - bool mayStartParsing(); - - void endParsing(); - - // Error message to be set in case of request - // and parsing errors. - void setError(const std::string& message); - void redoPlacement(); const SourceInfo& source; - Request *req = nullptr; std::string data; - Worker& worker; TileWorker workerData; - std::unique_ptr<WorkRequest> workRequest; std::atomic_flag parsing = ATOMIC_FLAG_INIT; private: - // Returns true if the TileData is in a final state and we cannot - // make changes to it anymore. - inline bool isImmutable() const { - return state == State::parsed || state == State::obsolete; - } - float lastAngle = 0; float currentAngle; bool lastCollisionDebug = 0; |