[Libreoffice-commits] online.git: Branch 'feature/latency' - wsd/DocumentBroker.cpp
Tamás Zolnai
tamas.zolnai at collabora.com
Tue Jun 19 14:42:09 UTC 2018
wsd/DocumentBroker.cpp | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 9000acbd1029f79d7e36a9982eb6f13c6d24e2ac
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
Date: Tue Jun 19 16:41:02 2018 +0200
Check whether tile rendering request was already sent
Change-Id: Iceb559106dcd95d6ff7db67df76cdfb04f9fb7e0
diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp
index dda63f52e..7863f7958 100644
--- a/wsd/DocumentBroker.cpp
+++ b/wsd/DocumentBroker.cpp
@@ -1407,6 +1407,10 @@ void DocumentBroker::sendRequestedTiles(const std::shared_ptr<ClientSession>& se
if(tile.getVersion() == -1) // Rendering of this tile was not requested yet
{
tile.setVersion(++_tileVersion);
+ }
+ std::shared_ptr<TileBeingRendered> tileBeingRendered = findTileBeingRendered(tile);
+ if(tileBeingRendered == nullptr)
+ {
tilesNeedsRendering.push_back(tile);
_debugRenderedTileCount++;
}
More information about the Libreoffice-commits
mailing list