Disable hw acceleration temporarily

Bug: 4886133
Change-Id: I0f9efc200712815610ddc9013acc7eec25631180
This commit is contained in:
Ben Komalo 2011-06-23 14:56:05 -07:00
parent bcdcc0458f
commit bf3e65b667
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,8 @@ public final class ActivityHelper {
* NOTE: Currently, this only works if HW accel is *not* enabled via the manifest.
*/
public static void debugSetWindowFlags(Activity activity) {
// STOPSHIP - re-enable hw acceleration when b/4886133 is fixed.
/*
if (Email.sDebugInhibitGraphicsAcceleration) {
// Clear the flag in the activity's window
activity.getWindow().setFlags(0,
@ -131,5 +133,6 @@ public final class ActivityHelper {
activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
}
*/
}
}