summaryrefslogtreecommitdiff
path: root/src/mbgl/map/raster_tile_data.hpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-03-13 19:04:55 +0200
committerKonstantin Käfer <mail@kkaefer.com>2015-03-18 12:51:33 +0100
commitaa9adbb8f89e5ea573b8a494a25c769f7784f40b (patch)
tree7d6a302d3bdf604de4837e36ec1dbfd6a29feb6d /src/mbgl/map/raster_tile_data.hpp
parentb5facd35bc766e32e00ebfccc8ea0721f243373a (diff)
downloadqtlocation-mapboxgl-aa9adbb8f89e5ea573b8a494a25c769f7784f40b.tar.gz
Scope the Tile worker thread to an Environment
We are also removing the code that is passing the Environment around and instead, we get now the Environment in the TileData using Environment::Get(). When processing the job, the work will be temporally registered to the Environment as "TileWorker_0/0/0" which can be used for logging in the future. At the end of the job, it gets unregistered automatically from the Environment.
Diffstat (limited to 'src/mbgl/map/raster_tile_data.hpp')
-rw-r--r--src/mbgl/map/raster_tile_data.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/map/raster_tile_data.hpp b/src/mbgl/map/raster_tile_data.hpp
index 2413e13fb0..76bc1bb5aa 100644
--- a/src/mbgl/map/raster_tile_data.hpp
+++ b/src/mbgl/map/raster_tile_data.hpp
@@ -17,7 +17,7 @@ class RasterTileData : public TileData {
friend class TileParser;
public:
- RasterTileData(Tile::ID const &id, TexturePool &, const SourceInfo &, Environment &);
+ RasterTileData(Tile::ID const &id, TexturePool &, const SourceInfo &);
~RasterTileData();
void parse() override;