summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-02-16 19:31:10 +0900
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-02-23 10:10:21 +0100
commit6ab77b350b0c4b5d2226a0c9ab861f9b80936019 (patch)
tree4501fc438b2d3db9385d73738de5d138a23a1df2
parent2e44c2b2b416469798c301ce1e6d6d1ee2a15d6c (diff)
android: directly call renderFrame, force render on initialization
Change-Id: I8395bae805a89558dd6c7517ea6c6a20b943ebff
-rw-r--r--android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/GeckoLayerClient.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/GeckoLayerClient.java b/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/GeckoLayerClient.java
index e975bf99b9e8..35f0b20f3b65 100644
--- a/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/GeckoLayerClient.java
+++ b/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/GeckoLayerClient.java
@@ -85,6 +85,7 @@ public class GeckoLayerClient implements PanZoomTarget {
mView.setLayerRenderer(mLayerRenderer);
sendResizeEventIfNecessary();
+ mView.requestRender();
}
public void destroy() {
@@ -335,11 +336,7 @@ public class GeckoLayerClient implements PanZoomTarget {
}
public void forceRender() {
- post(new Runnable() {
- public void run() {
- mView.requestRender();
- }
- });
+ mView.requestRender();
}
/* Root Layer Access */