diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-09-18 10:14:00 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-09-18 23:05:03 +0200 |
commit | cd76306355cdb7efe97545ad40ae9a1f3f8e2811 (patch) | |
tree | b3b8e21cb42ec635e97bb04d237ccf686f7b488f /android | |
parent | 1a42c78a594d8ea26eb2cc767772d614cb4c1285 (diff) |
android: Log tile managing times
Change-Id: I70fe5f1ca6553e2b3282ad0f5c227c5c0bc31f86
Diffstat (limited to 'android')
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java | 7 |
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; |