summaryrefslogtreecommitdiff
path: root/src/mbgl/map/vector_tile_data.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-06-04 19:07:48 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-07-01 15:21:09 -0700
commit875ef979be0140332ab219e422022ccb38b99a1e (patch)
tree828c8be75f1576b98c2106c327f2b4681202dc8c /src/mbgl/map/vector_tile_data.hpp
parent217c376291967aecd7c8cc26e485e3a4fe09ee60 (diff)
downloadqtlocation-mapboxgl-875ef979be0140332ab219e422022ccb38b99a1e.tar.gz
Remove indirection
Diffstat (limited to 'src/mbgl/map/vector_tile_data.hpp')
-rw-r--r--src/mbgl/map/vector_tile_data.hpp27
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;