bug 748585 - Java low res screenshot sometimes renders black r=cwiiis a=jprmc
authorBrad Lassey <blassey@mozilla.com>
Tue, 24 Apr 2012 18:54:24 -0400
changeset 95553 8a010659cdbf5d47aad0f32d7db28de4a2c74034
parent 95552 c584e12ad1bd02034bc9aca3f863eba427e27804
child 95554 c5ac3bd1c831b6c3983c9096aeca0861ba7230c3
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscwiiis, jprmc
bugs748585
milestone14.0a2
bug 748585 - Java low res screenshot sometimes renders black r=cwiiis a=jprmc
mobile/android/base/GeckoAppShell.java
--- a/mobile/android/base/GeckoAppShell.java
+++ b/mobile/android/base/GeckoAppShell.java
@@ -2166,24 +2166,26 @@ public class GeckoAppShell
                 mDirtyLeft = Float.POSITIVE_INFINITY;
                 mDirtyBottom = Float.NEGATIVE_INFINITY;
                 mDirtyRight = Float.NEGATIVE_INFINITY;
                 mIsRepaintRunnablePosted = false;
             }
 
             Tab tab = Tabs.getInstance().getSelectedTab();
             ImmutableViewportMetrics viewport = GeckoApp.mAppContext.getLayerController().getViewportMetrics();
+            /*
             if (FloatUtils.fuzzyEquals(sCheckerboardPageWidth, viewport.pageSizeWidth) &&
                 FloatUtils.fuzzyEquals(sCheckerboardPageHeight, viewport.pageSizeHeight)) {
                 float width = right - left;
                 float height = bottom - top;
                 GeckoAppShell.sendEventToGecko(GeckoEvent.createScreenshotEvent(tab.getId(), (int)top, (int)left, (int)width, (int)height, 0, 0, (int)(sLastCheckerboardWidthRatio * width), (int)(sLastCheckerboardHeightRatio * height), GeckoAppShell.SCREENSHOT_UPDATE));
             } else {
+            */
                 GeckoAppShell.screenshotWholePage(tab);
-            }
+            //}
         }
 
         void addRectToRepaint(float top, float left, float bottom, float right) {
             synchronized(this) {
                 mDirtyTop = Math.min(top, mDirtyTop);
                 mDirtyLeft = Math.min(left, mDirtyLeft);
                 mDirtyBottom = Math.max(bottom, mDirtyBottom);
                 mDirtyRight = Math.max(right, mDirtyRight);