Allow redraw while a finger is down. Make this logic work properly later.
authorPatrick Walton <pwalton@mozilla.com>
Tue, 07 Feb 2012 23:37:29 -0800
changeset 90904 939db6b3f90aa04cdccc812c4366f9f5a43c0dd0
parent 90903 a266d295b97d8ce8a266ed50bccc0069cdcc408e
child 90907 b067db598cdd5941d64b165bc599caa09151bf9f
push idunknown
push userunknown
push dateunknown
milestone12.0a1
Allow redraw while a finger is down. Make this logic work properly later.
mobile/android/base/gfx/GeckoLayerClient.java
--- a/mobile/android/base/gfx/GeckoLayerClient.java
+++ b/mobile/android/base/gfx/GeckoLayerClient.java
@@ -260,18 +260,20 @@ public abstract class GeckoLayerClient e
     }
 
     @Override
     public void render() {
         adjustViewportWithThrottling();
     }
 
     private void adjustViewportWithThrottling() {
-        if (!getLayerController().getRedrawHint())
-            return;
+        // FIXME: Allow redraw while a finger is down, but only if we're about to checkerboard.
+        // This requires fixing aboutToCheckerboard() to know about the new buffer size.
+        /*if (!getLayerController().getRedrawHint())
+            return;*/
 
         if (mPendingViewportAdjust)
             return;
 
         long timeDelta = System.currentTimeMillis() - mLastViewportChangeTime;
         if (timeDelta < MIN_VIEWPORT_CHANGE_DELAY) {
             getLayerController().getView().postDelayed(
                 new Runnable() {