Bug 1046984. Include the stride in the gralloc memory report.

--HG--
extra : rebase_source : b5c7f060c73dc67b4cdb3fe29a59c288ddbde9b2
This commit is contained in:
Jeff Muizelaar 2014-07-31 15:20:57 -04:00
Родитель 3017d2858c
Коммит 29151fa2e2
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -65,8 +65,8 @@ public:
// Special case for BSP specific formats (mainly YUV formats, count it as normal YUV buffer).
: (stride * height * 3 / 2);
nsPrintfCString gpath("gralloc/pid(%d)/buffer(width=%d, height=%d, bpp=%d)",
pid, gb->getWidth(), height, bpp);
nsPrintfCString gpath("gralloc/pid(%d)/buffer(width=%d, height=%d, bpp=%d, stride=%d)",
pid, gb->getWidth(), height, bpp, stride);
rv = aHandleReport->Callback(EmptyCString(), gpath, KIND_OTHER, UNITS_BYTES, amount,
NS_LITERAL_CSTRING(