[core] TileData objects now store whether an optional load attempt was performed

This commit is contained in:
Konstantin Käfer
2016-05-27 16:55:59 +02:00
parent 8a8f828e41
commit fce5dd5f6a
4 changed files with 24 additions and 1 deletions

View File

@@ -29,11 +29,17 @@ struct MockBucket {};
struct MockTileData {
MockTileData(const mbgl::OverscaledTileID& tileID_) : tileID(tileID_) {}
bool isRenderable() {
bool hasTriedOptional() const {
return triedOptional;
}
bool isRenderable() const {
return renderable;
}
bool renderable = false;
bool triedOptional = false;
const mbgl::OverscaledTileID tileID;
};