Bug 844275 - Move the GfxInfoThread so that it is guaranteed to run to completion before compositor creation. r=Cwiiis

This commit is contained in:
Kartikaya Gupta
2013-02-28 13:28:24 -05:00
parent 8b384b08d5
commit 6da27d83f3
4 changed files with 58 additions and 37 deletions

View File

@@ -156,8 +156,6 @@ public class GeckoAppShell
private static Handler sGeckoHandler;
public static GfxInfoThread sGfxInfoThread = null;
static ActivityHandlerHelper sActivityHelper = new ActivityHandlerHelper();
/* The Android-side API: API methods that Android calls */
@@ -2176,9 +2174,7 @@ public class GeckoAppShell
}
public static String getGfxInfoData() {
String data = sGfxInfoThread.getData();
sGfxInfoThread = null;
return data;
return GfxInfoThread.getData();
}
public static void registerSurfaceTextureFrameListener(Object surfaceTexture, final int id) {