diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-03-13 19:04:55 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-03-18 12:51:33 +0100 |
commit | aa9adbb8f89e5ea573b8a494a25c769f7784f40b (patch) | |
tree | 7d6a302d3bdf604de4837e36ec1dbfd6a29feb6d /src/mbgl/map/raster_tile_data.cpp | |
parent | b5facd35bc766e32e00ebfccc8ea0721f243373a (diff) | |
download | qtlocation-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.cpp')
-rw-r--r-- | src/mbgl/map/raster_tile_data.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/map/raster_tile_data.cpp b/src/mbgl/map/raster_tile_data.cpp index 4cd7fc2b5e..b8862e6dd8 100644 --- a/src/mbgl/map/raster_tile_data.cpp +++ b/src/mbgl/map/raster_tile_data.cpp @@ -5,8 +5,8 @@ using namespace mbgl; RasterTileData::RasterTileData(Tile::ID const &id_, TexturePool &texturePool, - const SourceInfo &source_, Environment &env_) - : TileData(id_, source_, env_), bucket(texturePool, layout) { + const SourceInfo &source_) + : TileData(id_, source_), bucket(texturePool, layout) { } RasterTileData::~RasterTileData() { |