[core] *Tile ↔ *TileData

Tile is now the main base class; RasterTile, VectorTile, etc are its subclasses. GeometryTileData and its subclasses form the piece that's passed to the worker.
This commit is contained in:
John Firebaugh
2016-06-13 10:59:33 -07:00
parent 3ab7c1cca3
commit 5c7dfd948f
58 changed files with 814 additions and 820 deletions

View File

@@ -7,11 +7,11 @@
namespace mbgl {
class TileData;
class Tile;
class RenderTile {
public:
RenderTile(const UnwrappedTileID& id_, TileData& data_) : id(id_), data(data_) {
RenderTile(const UnwrappedTileID& id_, Tile& tile_) : id(id_), tile(tile_) {
}
RenderTile(const RenderTile&) = delete;
@@ -20,7 +20,7 @@ public:
RenderTile& operator=(RenderTile&&) = default;
const UnwrappedTileID id;
TileData& data;
Tile& tile;
ClipID clip;
mat4 matrix;
};