summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-11-07 13:21:25 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2018-11-07 14:19:02 +0100
commitadbcc28273da6511050ca37c3d5ee4c93ac3ba7f (patch)
tree38cfe95a20498132f0dee5f83ed8e7b7b9ce8fdd
parent51fdcdb424933136b8408c8eacc330d2bec9fc1c (diff)
If we skipped all tiles, don't bother sending an empty tilecombine: message
It would just be ignored later anyway, and produce the warning "WRN Dropping empty tilecombine response". Change-Id: I6d92367262dc306369f2ca6c2e1964b5d151acc1 Reviewed-on: https://gerrit.libreoffice.org/63013 Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
-rw-r--r--kit/Kit.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/kit/Kit.cpp b/kit/Kit.cpp
index c78f73c3b..8eda6ce10 100644
--- a/kit/Kit.cpp
+++ b/kit/Kit.cpp
@@ -1179,6 +1179,12 @@ public:
renderArea.getWidth() << ", " << renderArea.getHeight() << ") " <<
" took " << (elapsed/1000.) << " ms (including the paintTile).");
+ if (tileIndex == 0)
+ {
+ LOG_DBG("All tiles skipped, not producing empty tilecombine: message");
+ return;
+ }
+
const auto tileMsg = ADD_DEBUG_RENDERID(tileCombined.serialize("tilecombine:")) + "\n";
LOG_TRC("Sending back painted tiles for " << tileMsg);