Revert "Double the memory in any blob allocations"
authorRebecca Schultz Zavin <rebecca@android.com>
Thu, 27 Sep 2012 23:45:04 +0000 (16:45 -0700)
committerRebecca Schultz Zavin <rebecca@android.com>
Thu, 27 Sep 2012 23:45:04 +0000 (16:45 -0700)
This reverts commit 53efd24f292043771988c4715225a2bca32ad2a8.

gralloc/gralloc.cpp

index 59c375939e3adeaa595b3cae86db558de9790219..a50fe27d94b7911acf86e757d8843b46e9a72c99 100644 (file)
@@ -152,7 +152,7 @@ static int gralloc_alloc_rgb(int ionfd, int w, int h, int format, int usage,
         case HAL_PIXEL_FORMAT_BLOB:
             *stride = w;
             vstride = h;
-            size = w * h * 2;
+            size = w * h;
             break;
         default:
             return -EINVAL;