remove unused method.
Change-Id: I79839a819426a3f0eff9db4fa3864512de0e95f0 Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
This commit is contained in:
parent
7ff4c9ffcd
commit
e8caabbc0b
2 changed files with 0 additions and 26 deletions
|
@ -427,27 +427,6 @@ void TileCache::subscribeToTileRendering(const TileDesc& tile, const std::shared
|
|||
}
|
||||
}
|
||||
|
||||
void TileCache::registerTileBeingRendered(const TileDesc& tile)
|
||||
{
|
||||
std::shared_ptr<TileBeingRendered> tileBeingRendered = findTileBeingRendered(tile);
|
||||
auto now = std::chrono::steady_clock::now();
|
||||
if (tileBeingRendered)
|
||||
{
|
||||
if (tileBeingRendered->isStale(&now))
|
||||
{
|
||||
// Tile painting has stalled. Reissue.
|
||||
tileBeingRendered->setVersion(tile.getVersion());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
assert(_tilesBeingRendered.find(tile) == _tilesBeingRendered.end());
|
||||
|
||||
tileBeingRendered = std::make_shared<TileBeingRendered>(tile, now);
|
||||
_tilesBeingRendered[tile] = tileBeingRendered;
|
||||
}
|
||||
}
|
||||
|
||||
std::string TileCache::cancelTiles(const std::shared_ptr<ClientSession> &subscriber)
|
||||
{
|
||||
assert(subscriber && "cancelTiles expects valid subscriber");
|
||||
|
|
|
@ -197,11 +197,6 @@ public:
|
|||
void subscribeToTileRendering(const TileDesc& tile, const std::shared_ptr<ClientSession>& subscriber,
|
||||
const std::chrono::steady_clock::time_point& now);
|
||||
|
||||
/// Create the TileBeingRendered object for the given tile indicating that the tile was sent to
|
||||
/// the kit for rendering. Note: subscribeToTileRendering calls this internally, so you don't need
|
||||
/// to call this method if you need also to subscribe for the rendered tile.
|
||||
void registerTileBeingRendered(const TileDesc& tile);
|
||||
|
||||
/// Cancels all tile requests by the given subscriber.
|
||||
std::string cancelTiles(const std::shared_ptr<ClientSession>& subscriber);
|
||||
|
||||
|
|
Loading…
Reference in a new issue