OSDN Git Service

conditional code to test the browser in 32bit
authorMike Reed <reed@google.com>
Tue, 26 Jan 2010 20:21:44 +0000 (15:21 -0500)
committerMike Reed <reed@google.com>
Tue, 26 Jan 2010 20:21:44 +0000 (15:21 -0500)
src/com/android/browser/BrowserActivity.java

index ab21a84..df71e9e 100644 (file)
@@ -242,6 +242,12 @@ public class BrowserActivity extends Activity
         // test the browser in OpenGL
         // requestWindowFeature(Window.FEATURE_OPENGL);
 
+        // enable this to test the browser in 32bit
+        if (false) {
+            getWindow().setFormat(PixelFormat.RGBX_8888);
+            BitmapFactory.setDefaultConfig(Bitmap.Config.ARGB_8888);
+        }
+
         setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);
 
         mResolver = getContentResolver();