Remove "referenced by raster" stuff from TilesetViewGroup.
We can use CreditSources instead, now.
This commit is contained in:
parent
47e8533e18
commit
11cf3812d2
|
|
@ -233,16 +233,6 @@ public:
|
|||
*/
|
||||
bool isCreditReferenced(CesiumUtility::Credit credit) const noexcept;
|
||||
|
||||
/**
|
||||
* @brief Check if given credit is referenced in raster overlays in this
|
||||
* view group's last frame.
|
||||
*
|
||||
* @param credit to test.
|
||||
* @return True if the credit is referenced in raster overlays in this
|
||||
* view group's last frame.
|
||||
*/
|
||||
bool isCreditReferencedByRaster(CesiumUtility::Credit credit) const noexcept;
|
||||
|
||||
private:
|
||||
double _weight = 1.0;
|
||||
std::vector<TileLoadTask> _mainThreadLoadQueue;
|
||||
|
|
@ -253,8 +243,6 @@ private:
|
|||
TraversalState _traversalState;
|
||||
CesiumUtility::CreditReferencer _previousFrameCredits;
|
||||
CesiumUtility::CreditReferencer _currentFrameCredits;
|
||||
CesiumUtility::CreditReferencer _previousFrameRasterCredits;
|
||||
CesiumUtility::CreditReferencer _currentFrameRasterCredits;
|
||||
};
|
||||
|
||||
} // namespace Cesium3DTilesSelection
|
||||
|
|
|
|||
|
|
@ -202,7 +202,6 @@ void TilesetViewGroup::finishFrame(
|
|||
if (pRasterOverlayTile != nullptr) {
|
||||
for (const Credit& credit : pRasterOverlayTile->getCredits()) {
|
||||
this->_currentFrameCredits.addCreditReference(credit);
|
||||
this->_currentFrameRasterCredits.addCreditReference(credit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -219,11 +218,6 @@ void TilesetViewGroup::finishFrame(
|
|||
|
||||
this->_previousFrameCredits.releaseAllReferences();
|
||||
std::swap(this->_previousFrameCredits, this->_currentFrameCredits);
|
||||
|
||||
this->_previousFrameRasterCredits.releaseAllReferences();
|
||||
std::swap(
|
||||
this->_previousFrameRasterCredits,
|
||||
this->_currentFrameRasterCredits);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -270,9 +264,4 @@ bool TilesetViewGroup::isCreditReferenced(
|
|||
return this->_previousFrameCredits.isCreditReferenced(credit);
|
||||
}
|
||||
|
||||
bool TilesetViewGroup::isCreditReferencedByRaster(
|
||||
CesiumUtility::Credit credit) const noexcept {
|
||||
return this->_previousFrameRasterCredits.isCreditReferenced(credit);
|
||||
}
|
||||
|
||||
} // namespace Cesium3DTilesSelection
|
||||
|
|
|
|||
Loading…
Reference in New Issue