summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
index b9dc0fb2e709..e75276da0084 100644
--- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
+++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
@@ -74,6 +74,8 @@ public class LOKitThread extends Thread {
Log.i(LOGTAG, "tilerender rect: " + rect);
+ long start = System.currentTimeMillis();
+
ArrayList<SubTile> removeTiles = new ArrayList<SubTile>();
for (SubTile tile : layerClient.getTiles()) {
Rect tileRect = new Rect(tile.x, tile.y, tile.x + TILE_SIZE, tile.y + TILE_SIZE);
@@ -82,9 +84,12 @@ public class LOKitThread extends Thread {
removeTiles.add(tile);
}
}
+ Log.i(LOGTAG, "TileRendering Remove: " + (System.currentTimeMillis() - start));
layerClient.getTiles().removeAll(removeTiles);
+ Log.i(LOGTAG, "TileRendering Clear: " + (System.currentTimeMillis() - start));
+
for (int y = rect.top; y < rect.bottom; y += TILE_SIZE) {
for (int x = rect.left; x < rect.right; x += TILE_SIZE) {
if (x > pageWidth) {
@@ -106,6 +111,8 @@ public class LOKitThread extends Thread {
}
}
+ Log.i(LOGTAG, "TileRendering Add: " + (System.currentTimeMillis() - start));
+
layerClient.endDrawing();
Log.i(LOGTAG, "tilerender end draw");
return true;