[core] RenderTile does not expose Tile
RenderTile and Tile will be split when ochestration movces to a separate thread. This PR improves encapsulation of Tiles management: now performed within TilePyramid.
This commit is contained in:
@@ -57,13 +57,11 @@ optional<Color> RenderLayer::getSolidBackground() const {
|
||||
RenderLayer::RenderTiles RenderLayer::filterRenderTiles(RenderTiles tiles) const {
|
||||
RenderTiles filtered;
|
||||
|
||||
for (auto& tileRef : tiles) {
|
||||
auto& tile = tileRef.get().tile;
|
||||
assert(tile.isRenderable());
|
||||
for (RenderTile& tile : tiles) {
|
||||
if (tile.holdForFade()) {
|
||||
continue;
|
||||
}
|
||||
filtered.emplace_back(tileRef);
|
||||
filtered.emplace_back(tile);
|
||||
}
|
||||
return filtered;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user